<template>
	<view>
		<!-- <view :class="['navbar',isScroll === true ? 'nav-fixed':'nav-normal']" :style="{ 'height': navheight +parseInt(slotheight)+ 'px' ,'background-color' : bgcolor}">
			<view :style="{ 'height': navheight + 'px' ,'background-color' : bgcolor}">
				<view :style="{'height': statusBarHeight +'px'}"></view>
				<view class="header" @click="getTool" :style="{'height': menuHeight +'px'}">
					<view v-if="xiao" class="hai" :style="{'line-height': menuHeight +'px'}">
						海鲜冻品
					</view>
				</view>
			</view>

		</view> -->
		<headerNav :isShowNav="false" :bgHeight="560" :navLeftIcon="false" :navRightIcon="false" leftIconColor="#fff" title="懂鲜" title-color="#ffffff"/>
		<!-- <image src="https://static-1310167831.cos.ap-nanjing.myqcloud.com/uploads/20230411/488ca0086209e335401bfbcc2e8ff224.png" class="bg" mode="widthFix"></image> -->
		<view class="search_location_container" style="width: 100%;padding: 30rpx 30rpx 10rpx;background: linear-gradient(180deg, #1fb0ac 0%, #5EC4C2 100%);box-sizing: border-box;overflow: hidden;">
			<view style="padding-left: 130rpx;position: relative;">
				<view @click="dizhi" class="addcity yihang"
					style="color: #ffffff;line-height: 80rpx;max-width: 120rpx;height: 80rpx;padding-right:30rpx;box-sizing: border-box;">
					<text>{{city}}</text>
					<text class="iconfont icon-down"
						style="position: absolute;top: 50%;right: 0;transform: translateY(-50%);font-size: 24rpx;color: #FFFFFF;font-weight: 600;"></text>
				</view>
				<view @click="search" style="width: 100%;z-index: 5;border-radius:40rpx ;margin: 0 auto;position: relative;">

					<input type="text" :disabled="true"   class="sou" placeholder-class="suo"
						placeholder="找人/找货/搜信息"  />
					<image
						src="https://dyeego.oss-cn-beijing.aliyuncs.com/uploads/20220325/91243acc628efa1338d3d38826d22484.png"
						class="souicon" mode=""></image>
				</view>
			</view>
		</view>

				<!-- :style="{'top': navheight+'px'}" -->
			<!-- <aloys-tab :tabs="tabs" @change="qie"> -->
			<!-- <view style="width: 100%;height: 100rpx;background: linear-gradient(180deg,#5EC4C2 0%, #F5F5F5 100%);">
				<view class="tuijian">
					<view :class="type==1?'active_type':'a_type'" @click="qie(1)">
						推荐
					</view>
					<view :class="type==2?'active_type':'a_type'" @click="qie(2)">
						市场
					</view>
					<view v-if="zhi_xs.zb_check" :class="type==4?'active_type':'a_type'" @click="qie(4)">
						直播动态
					</view>
					<view style="width: 36%;" :class="type==3?'active_type':'a_type'" @click="qie(3)">
						{{zhi_xs.qh_name || ''}}
					</view>

				</view>
			</view> -->

			<scroll-view v-if="false" style="width: 100%;height: 100rpx;background: linear-gradient(180deg,#5EC4C2 0%, #F5F5F5 100%);" :enable-flex="true" scroll-with-animation :throttle="false" :scroll-left="scrollToLeft"
				scroll-x @scroll="handleScroll">
				<view class="nav uni-nav">
					<view class="nav-item" :class="swiperIndex == index ? 'nav-item-act' : ''"
						v-for="(item, index) in list_tabs" :key="index" @click="taggleNav(index)">
						{{ item.title }}
					</view>
					<!-- <view class="nav-line" :style="style"></view> -->
				</view>
			</scroll-view>
			<scroll-view class="mb20" style="width: 100%;height: 100rpx;background: linear-gradient(180deg,#5EC4C2 0%, #F5F5F5 100%);"
				:enable-flex="true" scroll-with-animation :throttle="false" :scroll-left="scrollToLeft" scroll-x
				@scroll="handleScroll">
				<tabNav class="pt20" :tabList="tabList" :selectIndex.sync="selectIndex" @handleClick="taggleNav" :flex1="true"></tabNav>
			</scroll-view>
			<!-- <tabNav class="pt20" :tabList="tabList" :selectIndex.sync="selectIndex" @handleClick="taggleNav" :flex1="true"></tabNav> -->
			<swiper  :current="swiperIndex" :duration="300" class="swiper" easing-function="linear"
				@change="swiperChange" >
					<!-- 海外报价 -->
					<swiper-item>
						<scroll-view :lower-threshold="80"
							:refresher-triggered="refreStatus" @refresherrefresh="handleRefre4"
							:refresher-enabled="true" class="swiper-scroll" scroll-y="true"
							@scrolltolower="swiperScrollLower">
					<!-- 直播动态-->
						<view>
							<view style="width: 92%;margin: 0 auto;">
								<view class="fenlei1 rounded-20">
									<view @click="dianji_fl(index)"
										style="width: 20%;text-align: center;float: left;"
										v-for="(item,index) in qhjyfl_list" :key='index'>
										<image :src="item.main_image" style="width: 60rpx;height: 60rpx;" mode=""></image>
										<view style="font-size: 24rpx;line-height: 30rpx;" :class="fl_type==index?'active':'a'">
											{{item.name}}
										</view>
									</view>
								</view>
								<view class="prow20 pt20 rounded-20 gongyinshang" style="margin-top: 20rpx;background: linear-gradient(-15deg, #6AC2A0 0%, #94D4BD 100%);" >
									<image @click="qbpp" src="https://static-1310167831.cos.ap-nanjing.myqcloud.com/uploads/20230616/8a05cb15ebe40fc4a667f4c26d949d7a.png" style="width: 100%;display: block;" mode="widthFix" v-if="false"></image>
									<forignCompany @viewAll="qbpp"/>
									<view style="width: 100%;box-sizing: border-box;padding: 20rpx 0 20rpx;border-radius: 0 0 20rpx 20rpx;">
										<view style="overflow: hidden;background-color: #ffffff;border-radius: 20rpx;padding:20rpx 20rpx 0 20rpx;">
											<view @click="changjia(a.id)" v-for="(a,b) in pp_list" :key='b' style="float: left;width: 20%;text-align: center;margin-bottom:20rpx;">
												<image :src="a.avatar" style="width: 60rpx;height: 60rpx;border-radius: 50%; clip-path: inset(0 round 30rpx);"
													mode=""></image>
													<view style="font-size: 24rpx;color: #000000;line-height: 40rpx;" class="yihang">
														{{a.name}}
													</view>
											</view>
										</view>
									</view>
								</view>
								<!-- <scroll-view id="tab-bar"
									style="width: 690rpx;margin: 20rpx auto;background-color: #FFFFFF;padding: 10rpx 20rpx 0 20rpx;box-sizing: border-box;"
									class="scroll-h1" :scroll-x="true" :show-scrollbar="false" :scroll-into-view="scrollInto">
									<view @click="changjia(a.id)" v-for="(a,b) in pp_list" :key='b' style="text-align: left;"
										class="uni-tab-item">
										<view style="width:138rpx;background-color: #FFFFFF;text-align: center;margin: 0 auto;">
											<image :src="a.avatar" style="width: 74rpx;height: 74rpx;border-radius: 12rpx;"
												mode="aspectFill"></image>
										</view>
										<view style="width: 138rpx;margin: 0rpx auto;text-align: center;">
											<view
												style="width: 138rpx;color: #888888;font-size: 24rpx;line-height: 48rpx;height: 48rpx;"
												class="yihang">
												{{a.name}}
											</view>
										</view>
									</view>
									<view style="text-align: left;height:130rpx;" class="uni-tab-item1" @click="qbpp">
										<view
											style="width: 130rpx;height: 130rpx;background-color: #F8F8F8;text-align: center;color: #999999;font-size: 22rpx;line-height: 130rpx;float: left;">
											查看全部
										</view>
									</view>
								</scroll-view> -->
								<view class="flex items-center" style="width:100%;margin: 26rpx auto 40rpx;display: flex;overflow: hidden;">
									<view class="bg-white rounded-4 tac follow_box"  @click="guanzhu(2)">
										<view style="position: relative;" :class="qi==2?'qiactive_type':'qi_type'">我的关注
										</view>
									</view>
									<view class="bg-white rounded-4 tac follow_box" @click="guanzhu(1)">
										<view style="position: relative;" :class="qi==1?'qiactive_type':'qi_type'">期货报价
										</view>
									</view>
									<view class="ml40" @click="dingyue"
										style="width: 160rpx;height: 46rpx;line-height: 46rpx;border-radius: 30rpx;text-align: center;font-size: 24rpx;color: #fff;background-color: #1fb0ac;float: right;margin-top: 0rpx;font-weight: 500;margin-right: 0rpx;">
										订阅通知
									</view>
								</view>
								<view style="width:100%;margin: 26rpx auto 40rpx;display: flex;overflow: hidden;" v-if="false">
									<view style="width: 40%;float: left;padding-bottom: 20rpx;" @click="guanzhu(2)">
										<view style="position: relative;" :class="qi==2?'qiactive_type':'qi_type'">我的关注</view>
									</view>
									<view style="width: 40%;float: left;padding-bottom: 20rpx;" @click="guanzhu(1)">
										<view style="position: relative;" :class="qi==1?'qiactive_type':'qi_type'">期货报价</view>
									</view>
									<view @click="dingyue" style="width: 160rpx;height: 46rpx;line-height: 46rpx;border-radius: 30rpx;text-align: center;font-size: 24rpx;color: #fff;background-color: #1fb0ac;float: right;margin-top: 0rpx;font-weight: 500;margin-right: 0rpx;">
										订阅通知
									</view>
								</view>
								<view v-if="qi==1">
									<view style="width:100%;margin: 26rpx auto;display: flex;">
										<view @click="qi_huo(1)" :class="['yihang',qh_type==1?'tui_active':'tui_mei']"
											style="flex: 1;text-align: center;">
											全部企业<!-- <text class="iconfont icon-xiangxia" style="font-size: 22rpx;"></text> -->
										</view>
										<!-- <view @click="qi_huo(2)" :class="['yihang',qh_type==2?'tui_active':'tui_mei']"
											style="flex: 1;text-align: center;">

											<text v-if="qihuo.length<=4">{{qihuo || jggy_name}}</text>
											<text v-if="qihuo.length>4">{{qihuo.slice(0,4)+'...' || jggy_name}}</text>
											<text class="iconfont icon-xiangxia"
												style="font-size: 22rpx;"></text>
										</view> -->
										<view @click="qi_huo(3)" :class="['yihang',qh_type==3?'tui_active':'tui_mei']"
											style="flex: 1;text-align: center;">
											<!-- {{qihuo1 || '产区'}} -->
											<text v-if="qihuo1.length<=4">{{qihuo1 || '产区'}}</text>
											<text v-if="qihuo1.length>4">{{qihuo1.slice(0,4)+'...' || '产区'}}</text>
											<text class="iconfont icon-xiangxia"
												style="font-size: 22rpx;"></text>
										</view>
										<view @click="qi_huo(4)" :class="['yihang',qh_type==4?'tui_active':'tui_mei']"
											style="flex: 1;text-align: center;">
											<!-- {{qihuo2 || '厂号'}} -->

											<text v-if="qihuo2.length<=4">{{qihuo2 || '厂号'}}</text>
											<text v-if="qihuo2.length>4">{{qihuo2.slice(0,4)+'...' || '厂号'}}</text>
											<text class="iconfont icon-xiangxia"
												style="font-size: 22rpx;"></text>
										</view>
									</view>
									<view
										style="width: 100%;box-sizing: border-box;padding: 30rpx;background-color: #FFFFFF;border-radius: 16rpx;margin-bottom: 20rpx;"
										v-for="(item,index) in qhjy_list" :key='index'>
										<view @click="changjia(item.brand_id)" style="overflow: hidden;">
											<view style="width: 18%;float: left;overflow: hidden;">
												<image :src="item.brand_avatar"
													style="width: 92rpx;height: 92rpx;border-radius: 50%;display: block;"
													mode=""></image>
											</view>
											<view style="width: 82%;float: left;padding: 6rpx 0;">
												<view style="height: 40rpx;line-height: 40rpx;">
													<text
														style="color: #000000;font-size: 30rpx;display: inline-block;font-weight: 600;float: left;">{{item.brand_name}}</text>
													<image :src="item.place.logo_image"
														style="width: 32rpx;height: 20rpx;float: left;margin-top: 10rpx;margin-left: 20rpx;"
														mode=""></image>
													<text
														style="color: #999999;font-size: 20rpx;float: left;margin-left: 20rpx;">({{item.place.name}})</text>
													<text
														style="color: #999999;font-size: 24rpx;float: right;">{{item.create_time_tips}}</text>
												</view>
												<view style="height: 40rpx;line-height: 40rpx;color: #010101;font-size: 24rpx;"
													class="yihang">
													{{item.brand_en_name}} <text style="float: right;color: #999999;font-size: 24rpx;">发布于 {{item.create_time}}</text>
												</view>
											</view>
										</view>
										<view v-if="is_vip!=1">
											<view v-html="item.en_content"
												style="color: #010101;font-size: 26rpx;margin-top: 20rpx;line-height: 40rpx;">

											</view>
											<view style="background-color: #eeeeee;box-sizing: border-box;padding: 20rpx;border-radius: 10rpx;font-size: 26rpx;">
												<view v-html="item.cn_content">
												</view>
											</view>
										</view>
										<view v-if="is_vip==1">
											<view v-html="item.vip_en_content"
												style="color: #010101;font-size: 26rpx;margin-top: 20rpx;line-height: 40rpx;">

											</view>
											<view style="background-color: #eeeeee;box-sizing: border-box;padding: 20rpx;border-radius: 10rpx;font-size: 26rpx;">
												<view v-html="item.vip_cn_content">

												</view>
											</view>
										</view>
										<view style="display: flex;margin-top: 20rpx;">
											<view style="flex: 1;">
												<view @click="dcjs(item.brand_id)"
													style="width: 100%;height: 60rpx;line-height: 60rpx;text-align: center;font-size: 24rpx;background-color: #fff;color: #1fb0ac;border-radius: 30rpx;border: 2rpx solid #1fb0ac;"">
													代采介绍

												</view>
											</view>
											<view @click="gz_cj(item.brand_id,index)" style="flex: 1;margin-left:16rpx;">
												<view v-if="item.is_collect==1"
													style="width: 100%;height: 60rpx;line-height: 60rpx;text-align: center;font-size: 24rpx;background-color: #fff;color: #1fb0ac;border-radius: 30rpx;border: 2rpx solid #1fb0ac;"">
													取消关注
												</view>
												<view v-if="item.is_collect==2"
													style="width: 100%;height: 60rpx;line-height: 60rpx;text-align: center;font-size: 24rpx;background-color: #fff;color: #1fb0ac;border-radius: 30rpx;border: 2rpx solid #1fb0ac;"">
													关注厂家
												</view>
											</view>
											<view v-if="is_server==2" style="flex: 1;margin-left:16rpx;" @click="yijian(item.phone,item.brand_id)">
												<view style="width: 100%;height: 60rpx;line-height: 60rpx;text-align: center;font-size: 24rpx;background-color: #1fb0ac;color: #ffffff;border-radius: 30rpx;">
													一键代采
												</view>
												<!-- <button type="default" open-type="contact"
													style="width: 100%;height: 60rpx;line-height: 60rpx;text-align: center;font-size: 24rpx;background-color: #1fb0ac;color: #ffffff;border-radius: 30rpx;">
													一键代采
												</button> -->
											</view>
										</view>
									</view>
									<view style="text-align: center;margin-top: 50rpx;">
										<image v-if="qh_kk"
											:src="require('@/static/my/no-data.png')"
											style="width: 334rpx;" mode="widthFix"></image>
										<view v-if="qhjy_list.length==0"
											style="text-align: center;color: #999999;font-size: 30rpx;line-height: 60rpx;">
											暂无推荐价格
										</view>
										<u-divider color='#717171' bg-color='#f0f2f8' height='80' border-color='#717171'
											text="没有更多了" v-if="qhjy_list.length>0 && qh_enmpy"></u-divider>
									</view>
								</view>
								<view v-if="qi==2">
									<!-- <view @click="tjgz" v-if="qhjy_list.length>0"
										style="width:230rpx;height: 60rpx;line-height: 60rpx;text-align: center;background-color: #1fb0ac;border-radius: 30rpx;font-size: 24rpx;color: #FFFFFF;margin: 20rpx auto 40rpx;">
										添加更多关注
									</view> -->
									<view @click="tjgz" style="text-align: center;margin-bottom: 30rpx;" v-if="qhjy_list.length>0">
										<image style="width: 250rpx;" src="https://static-1310167831.cos.ap-nanjing.myqcloud.com/uploads/20230413/74974a81381155a891392f6f6933908a.png" mode="widthFix"></image>
									</view>
									<view
										style="width: 100%;box-sizing: border-box;padding: 30rpx;background-color: #FFFFFF;border-radius: 16rpx;margin-bottom: 20rpx;"
										v-for="(item,index) in qhjy_list" :key='index'>
										<view @click="changjia(item.brand_id)" style="overflow: hidden;">
											<view style="width: 18%;float: left;overflow: hidden;">
												<image :src="item.brand_avatar"
													style="width: 92rpx;height: 92rpx;border-radius: 50%;display: block;"
													mode=""></image>
											</view>
											<view style="width: 82%;float: left;padding: 6rpx 0;">
												<view style="height: 40rpx;line-height: 40rpx;">
													<text
														style="color: #000000;font-size: 30rpx;display: inline-block;font-weight: 600;float: left;">{{item.brand_name}}</text>
													<image :src="item.place.logo_image"
														style="width: 32rpx;height: 20rpx;float: left;margin-top: 10rpx;margin-left: 20rpx;"
														mode=""></image>
													<text
														style="color: #999999;font-size: 20rpx;float: left;margin-left: 20rpx;">({{item.place.name}})</text>
													<text
														style="color: #999999;font-size: 24rpx;float: right;">{{item.create_time_tips}}</text>
												</view>
												<view style="height: 40rpx;line-height: 40rpx;color: #010101;font-size: 24rpx;"
													class="yihang">
													{{item.brand_en_name}} <text
														style="float: right;color: #999999;font-size: 24rpx;">发布于{{item.create_time}}</text>
												</view>
											</view>
										</view>
										<view v-if="is_vip!=1">
											<view v-html="item.en_content"
												style="color: #010101;font-size: 26rpx;margin-top: 20rpx;line-height: 40rpx;">

											</view>
											<view style="background-color: #eeeeee;box-sizing: border-box;padding: 20rpx;border-radius: 10rpx;font-size: 26rpx;">
												<view v-html="item.cn_content">

												</view>
											</view>
										</view>
										<view v-if="is_vip==1">
											<view v-html="item.vip_en_content"
												style="color: #010101;font-size: 26rpx;margin-top: 20rpx;line-height: 40rpx;">

											</view>
											<view style="background-color: #eeeeee;box-sizing: border-box;padding: 20rpx;border-radius: 10rpx;font-size: 26rpx;">
												<view v-html="item.vip_cn_content">

												</view>
											</view>
										</view>
										<view style="display: flex;margin-top: 20rpx;">
											<view style="flex: 1;">
												<view @click="dcjs(item.brand_id)"
													style="width: 100%;height: 60rpx;line-height: 60rpx;text-align: center;font-size: 24rpx;background-color: #C9E7E6;color: #1fb0ac;border-radius: 30rpx;">
													代采介绍

												</view>
											</view>
											<view @click="gz_cj(item.brand_id,index)" style="flex: 1;margin-left:10rpx;">
												<view v-if="item.is_collect==1"
													style="width: 100%;height: 60rpx;line-height: 60rpx;text-align: center;font-size: 24rpx;background-color: #1fb0ac;color: #ffffff;border-radius: 30rpx;">
													取消关注
												</view>
												<view v-if="item.is_collect==2"
													style="width: 100%;height: 60rpx;line-height: 60rpx;text-align: center;font-size: 24rpx;background-color: #C9E7E6;color: #1fb0ac;border-radius: 30rpx;">
													关注厂家
												</view>
											</view>
											<view v-if="is_server==2" style="flex: 1;margin-left:10rpx;" @click="yijian(item.phone,item.brand_id)">
												<view style="width: 100%;height: 60rpx;line-height: 60rpx;text-align: center;font-size: 24rpx;background-color: #1fb0ac;color: #ffffff;border-radius: 30rpx;">
													一键代采
												</view>
												<!-- <button type="default" open-type="contact"
													style="width: 100%;height: 60rpx;line-height: 60rpx;text-align: center;font-size: 24rpx;background-color: #1fb0ac;color: #ffffff;border-radius: 30rpx;">
													一键代采
												</button> -->
											</view>
										</view>
									</view>
									<view style="width:2rpx;height:2rpx;bottom:-2rpx;position:absolute;"></view>
									<view style="text-align: center;margin: 50rpx 0;">
										<!-- <image v-if="qh_kk"
											:src="require('@/static/my/no-data.png')"
											style="width: 334rpx;" mode="widthFix"></image>
										<view @click="tjgz" v-if="qhjy_list.length==0"
											style="width:230rpx;height: 60rpx;line-height: 60rpx;text-align: center;background-color: #1fb0ac;border-radius: 30rpx;font-size: 24rpx;color: #FFFFFF;margin: 40rpx auto;">
											立即添加关注
										</view>
										<u-divider color='#717171' bg-color='#f0f2f8' height='80' border-color='#717171'
											text="没有更多了" v-if="qhjy_list.length>0 && qh_enmpy"></u-divider> -->
										<view @click="tjgz" style="text-align: center;margin-bottom: 30rpx;" v-if="qhjy_list.length==0">
											<image style="width: 250rpx;" src="https://static-1310167831.cos.ap-nanjing.myqcloud.com/uploads/20230413/74974a81381155a891392f6f6933908a.png" mode="widthFix"></image>
										</view>
									</view>
								</view>
							</view>
						</view>


						</scroll-view>
					</swiper-item>

					<!-- 企业 -->
					<swiper-item>
						<scroll-view :lower-threshold="80"
							:refresher-triggered="refreStatus" @refresherrefresh="handleRefre1"
							:refresher-enabled="true" class="swiper-scroll" scroll-y="true"
							@scrolltolower="swiperScrollLower">
						<view>
							<view  style="width: 92%;margin: 0 auto;">
								<view >
									<u-swiper @click="toSwiperDetail" imgMode="scaleToFill" :list="list3" height="140" radius="10" indicator indicatorMode="line" circular></u-swiper>
								</view>

								<view class="fenlei rounded-20 pb20">
									<view style="overflow: hidden;padding: 20rpx 0 0;">
										<view v-for="(item, index) in qyhyfl_list" :key='index'  @click="xiaqiye(index,item.id,item.name)" style="text-align: center;width: 20%;float: left;margin-bottom: 20rpx;">
											<image :src="item.main_image" style="width: 60rpx;height: 60rpx;" mode=""></image>
											<view style="font-size: 24rpx;color: #000000;line-height: 30rpx;">
												{{item.name}}
											</view>
										</view>
									</view>
									<!-- <swiper :indicator-dots="fl_xianshi" style="height: 320rpx;" class="swiper">
									    <swiper-item style="padding-bottom: 40rpx;">
											   <u-grid :border="false" >
											       <u-grid-item @click="xiaqiye(index,item.id,item.name)"
											               :customStyle="{width:138+'rpx',height:138+'rpx'}"
											               v-for="(item, index) in qyhyfl_list.slice(0,10)"
											               :index="index"
											               :key="index"
											       >
											           <image :src="item.main_image" style="width: 80rpx;height: 80rpx;" mode=""></image>
											           <view style="font-size: 24rpx;color: #000000;margin-top: 10rpx;">
											           	{{item.name}}
											           </view>
											       </u-grid-item>
											   </u-grid>
									    </swiper-item>
									    <swiper-item v-if="qyhyfl_list.length>10" style="padding-bottom: 40rpx;">
									        <u-grid :border="false" >
									            <u-grid-item @click="xiaqiye(index,item.id,item.name)"
									                    :customStyle="{width:138+'rpx',height:138+'rpx'}"
									                    v-for="(item, index) in qyhyfl_list.slice(10,20)"
									                    :index="index+10"
									                    :key="index"
									            >
									                <image :src="item.main_image" style="width: 80rpx;height: 80rpx;" mode=""></image>
									                <view style="font-size: 24rpx;color: #000000;margin-top: 10rpx;">
									                	{{item.name}}
									                </view>
									            </u-grid-item>
									        </u-grid>
									    </swiper-item>
									    <swiper-item v-if="qyhyfl_list.length>20" style="padding-bottom: 40rpx;">
											   <u-grid :border="false" >
											       <u-grid-item @click="xiaqiye(index,item.id,item.name)"
											               :customStyle="{width:138+'rpx',height:138+'rpx'}"
											               v-for="(item, index) in qyhyfl_list.slice(0,10)"
											               :index="index+20"
											               :key="index"
											       >
											           <image :src="item.main_image" style="width: 80rpx;height: 80rpx;" mode=""></image>
											           <view style="font-size: 24rpx;color: #000000;margin-top: 10rpx;">
														{{item.name}}
											           </view>
											       </u-grid-item>
											   </u-grid>
									    </swiper-item>
									</swiper> -->

								</view>
								<view  style="width:100%;margin: 26rpx auto 6rpx;display: flex;background-color: #F8F8F8;padding: 20rpx 0;">
									<view @click="jiage(1)" :class="tui_type==1?'tui_active':'tui_mei'"
										style="flex:1;text-align: center;">
										全部
										<!-- <text class="iconfont icon-xiangxia" style="font-size: 22rpx;"></text> -->
									</view>
									<!-- <view  @click="jiage(2)" :class="['yihang',tui_type==2?'tui_active':'tui_mei']" style="flex:1;text-align: center;">
								{{label2 || '位置'}}<text class="iconfont icon-xiangxia" style="font-size: 22rpx;"></text>
							</view> -->
									<view @click="jiage(3)" :class="tui_type==3?'tui_active':'tui_mei'"
										style="flex:1;text-align: center;">
										<!-- {{qihuo3 || '市场'}} -->
										<text v-if="qihuo3.length<=4">{{qihuo3 || '市场'}}</text>
										<text v-if="qihuo3.length>4">{{qihuo3.slice(0,4)+'...' || '市场'}}</text>
										<text class="iconfont icon-xiangxia" style="font-size: 22rpx;"></text>
									</view>
									<view @click="jiage(5)" :class="tui_type==5?'tui_active':'tui_mei'"
										style="flex:1;text-align: center;">
										<!-- {{qihuo6 || '品类'}} -->
										<text v-if="qihuo6.length<=4">{{qihuo6 || '品类'}}</text>
										<text v-if="qihuo6.length>4">{{qihuo6.slice(0,4)+'...' || '品类'}}</text>
										<text class="iconfont icon-xiangxia" style="font-size: 22rpx;"></text>
									</view>
									<view @click="jiage(4)" :class="tui_type==4?'tui_active':'tui_mei'"
										style="flex:1;text-align: center;">
										<!-- {{qihuo5 || '类型'}} -->
										<text v-if="qihuo5.length<=4">{{qihuo5 || '类型'}}</text>
										<text v-if="qihuo5.length>4">{{qihuo5.slice(0,4)+'...' || '类型'}}</text>
										<text class="iconfont icon-xiangxia" style="font-size: 22rpx;"></text>
									</view>

								</view>
								<view v-for="(item,index) in qiye_list" :key='index'  >
									<view v-if="item.special_manage==1"  style="box-sizing: border-box;padding: 30rpx 30rpx 0;background-color: #FFFFFF;margin-top: 26rpx;border-radius: 16rpx;">
										<view  style="overflow: hidden;" @click="qyxq(item.id,item.special_manage,item.name)">
											<view style="width: 35%;float: left;position: relative;">
												<image :src="item.logo_image"
													style="width: 190rpx;height: 190rpx;display: block;border-radius: 20rpx;left: 0;"
													mode="aspectFill"></image>
												<!-- <text
													style="color: #AF7300;font-size: 22rpx;padding: 6rpx 20rpx;background-color: #EFE0C3;position: absolute;top: 0;left: 0;border-top-left-radius: 10rpx;">
													{{item.client_position_text}}
												</text> -->
											</view>
											<view style="width: 65%;float: left;padding: 6rpx 0;">
												<view style="line-height: 40rpx;color: #010101;font-size: 28rpx;margin: 10rpx 0;"
													class="yihang">
													{{item.name}}
												</view>
												<view style="line-height: 40rpx;color: #010101;;margin: 10rpx 0 0;overflow: hidden;">
													<text v-for="(a,b) in item.client_position_arr" :key='b' style="background:#81D8D0;border-radius: 10rpx;color: #18A9A5;font-size: 22rpx;padding: 0 10rpx;float: left;margin-right: 10rpx;margin-bottom: 10rpx;">
														{{a.title || ''}}
													</text>
												</view>
												<view style="line-height: 30rpx;color: #999999;font-size: 26rpx;margin: 10rpx 0 10rpx;"
													class="yihang">
													主营：{{item.manage || '暂无主营'}}
												</view>
												<view style="line-height: 30rpx;color: #999999;font-size: 26rpx;" class="erhang">
													<!-- <text class="iconfont icon-dizhi2"
														style="color: #909193;font-size: 24rpx;"></text> -->
													入驻市场：
													<text v-if="item.bazaar.length>0" v-for="(a,b) in item.bazaar" style="margin-left: 6rpx;" :key='index'>
														{{a.name}}
													</text>
													<text v-if="item.bazaar.length<=0">
														暂无市场
													</text>
												</view>
											</view>
										</view>
										<view style="display: flex;text-align: center;color: #999999;font-size: 22rpx;line-height: 100rpx;">
											<view style="flex: 2;text-align: left;">
												浏览量：{{item.views_num || 0}}
											</view>
											<view style="flex: 2;text-align: left;">
												关注数：{{item.attention_num || 0}}人
											</view>
											<view style="flex: 2;">
												联系次数：{{item.contact_num || 0}}次
											</view>
											<view @click="lahei(item.id,index)" style="flex: 1;text-align: right;">
												<text class="iconfont icon-guanbi" style="font-size: 24rpx;"></text>
											</view>
										</view>
									</view>
									<view v-if="item.special_manage==2" style="box-sizing: border-box;padding: 30rpx 30rpx 0;background-color: #FFFFFF;margin-top: 26rpx;border-radius: 16rpx;">
										<view style="overflow: hidden;" @click="qyxq(item.id,item.special_manage,item.name)">
											<view style="width: 35%;float: left;">
												<image :src="item.logo_image"
													style="width: 190rpx;height: 190rpx;display: block;border-radius: 20rpx;" mode=""></image>
											</view>
											<view style="width: 65%;float: left;padding: 6rpx 0;">
												<view style="line-height: 40rpx;color: #010101;font-size: 32rpx;margin: 10rpx 0;"
													class="yihang">
													{{item.name}}
												</view>
												<view style="line-height: 40rpx;color: #010101;font-size: 32rpx;margin: 10rpx 0;overflow: hidden;">
													<text v-for="(a,b) in item.client_position_arr" :key='b' style="background: linear-gradient(0deg, #1fb0ac 0%, #5EC4C2 100%);border-radius: 6rpx;color: #FEFEFE;font-size: 22rpx;padding: 0rpx 10rpx;float: left;margin-right: 10rpx;margin-bottom: 10rpx;">
														{{a.title || ''}}
													</text>
												</view>
												<view style="overflow: hidden;line-height: 30rpx;margin: 10rpx 0;">
													<view style="width: 10%;float: left;">
														<image
															src="https://static-1310167831.cos.ap-nanjing.myqcloud.com/uploads/20220329/%E5%9B%BE%E5%B1%82%20564%402x.png"
															style="width: 30rpx;height: 30rpx;" mode=""></image>
													</view>
													<view style="color: #333333;font-size: 22rpx;width: 90%;float: left;">
														{{item.wl_address_text || ''}}
													</view>
												</view>
												<view style="overflow: hidden;line-height: 30rpx;">
													<view style="width: 10%;float: left;">
														<image
															src="https://static-1310167831.cos.ap-nanjing.myqcloud.com/uploads/20220329/%E5%9B%BE%E5%B1%82%20565%402x.png"
															style="width: 30rpx;height: 30rpx;" mode=""></image>
													</view>
													<view style="color: #333333;font-size: 22rpx;width: 90%;float: left;">
														{{item.wl_main_text || ''}}
													</view>
												</view>
												<view style="line-height: 30rpx;color: #999999;font-size: 22rpx;" class="erhang">
													<!-- <text class="iconfont icon-dizhi2"
														style="color: #909193;font-size: 24rpx;"></text> -->
													入驻市场：
													<text v-if="item.bazaar.length>0" v-for="(a,b) in item.bazaar" style="margin-left: 6rpx;" :key='index'>
														{{a.name}}
													</text>
													<text v-if="item.bazaar.length<=0">
														暂无市场
													</text>
												</view>
											</view>
										</view>
										<view style="display: flex;text-align: center;color: #999999;font-size: 22rpx;line-height: 100rpx;">
											<view style="flex: 2;text-align: left;">
												浏览量：{{item.views_num}}
											</view>
											<view style="flex: 2;text-align: left;">
												关注数：{{item.contact_num}}人
											</view>
											<view style="flex: 2;">
												联系次数：{{item.attention_num}}次
											</view>
											<view @click="lahei(item.id,index)" style="flex: 1;text-align: right;">
												<text class="iconfont icon-guanbi" style="font-size: 24rpx;"></text>
											</view>
										</view>
									</view>
									<view v-if="item.special_manage==3"  style="box-sizing: border-box;padding: 30rpx 30rpx 0;background-color: #FFFFFF;margin-top: 26rpx;border-radius: 16rpx;">
										<view  style="overflow: hidden;" @click="qyxq(item.id,item.special_manage,item.name)">
											<view style="width: 35%;float: left;position: relative;">
												<image :src="item.logo_image"
													style="width: 190rpx;height: 190rpx;display: block;border-radius: 20rpx;"
													mode=""></image>

											</view>
											<view style="width: 65%;float: left;padding: 6rpx 0;">
												<view style="line-height: 40rpx;color: #010101;font-size: 32rpx;margin: 10rpx 0;"
													class="yihang">
													{{item.name}}
												</view>
												<view style="line-height: 40rpx;color: #010101;font-size: 32rpx;margin: 10rpx 0;overflow: hidden;">
													<text v-for="(a,b) in item.client_position_arr" :key='b' style="background: linear-gradient(0deg, #1fb0ac 0%, #5EC4C2 100%);border-radius: 6rpx;color: #FEFEFE;font-size: 22rpx;padding: 0rpx 10rpx;float: left;margin-right: 10rpx;margin-bottom: 10rpx;">
														{{a.title || ''}}
													</text>
												</view>
												<view style="line-height: 30rpx;color: #999999;font-size: 22rpx;margin: 10rpx 0 20rpx;"
													class="erhang">
													生产品类：{{item.process_text || '暂无生产品类'}}
												</view>
												<view style="line-height: 30rpx;color: #999999;font-size: 22rpx;" class="erhang">
													<!-- <text class="iconfont icon-dizhi2"
														style="color: #909193;font-size: 24rpx;"></text> -->
													入驻市场：
													<text v-if="item.bazaar.length>0" v-for="(a,b) in item.bazaar" style="margin-left: 6rpx;" :key='index'>
														{{a.name}}
													</text>
													<text v-if="item.bazaar.length<=0">
														暂无市场
													</text>
												</view>
											</view>
										</view>
										<view style="display: flex;text-align: center;color: #999999;font-size: 22rpx;line-height: 100rpx;">
											<view style="flex: 2;text-align: left;">
												浏览量：{{item.views_num || 0}}
											</view>
											<view style="flex: 2;text-align: left;">
												关注数：{{item.attention_num || 0}}人
											</view>
											<view style="flex: 2;">
												联系次数：{{item.contact_num || 0}}次
											</view>
											<view @click="lahei(item.id,index)" style="flex: 1;text-align: right;">
												<text class="iconfont icon-guanbi" style="font-size: 24rpx;"></text>
											</view>
										</view>
									</view>
								</view>
								<view style="width:2rpx;height:2rpx;bottom:-2rpx;position:absolute;"></view>
								<view v-if="qiye_kk" style="text-align: center;">
									<image
										src="https://static-1310167831.cos.ap-nanjing.myqcloud.com/uploads/20220329/e86889a9b8fd67d8950e4775d67316c.png"
										style="width: 400rpx;" mode="widthFix"></image>
								</view>
								<u-divider color='#717171' bg-color='#f0f2f8' height='80' border-color='#717171' text="暂无数据"
									v-if="qiye_list.length==0"></u-divider>
								<u-divider color='#717171' bg-color='#f0f2f8' height='80' border-color='#717171' text="没有更多了"
									v-if="qiye_list.length>0 && qiye_enmpy"></u-divider>
							</view>
						</view>


						</scroll-view>
					</swiper-item>
					<!-- 市场 -->
					<swiper-item>
						<scroll-view :lower-threshold="80"
							:refresher-triggered="refreStatus" @refresherrefresh="handleRefre2"
							:refresher-enabled="true" class="swiper-scroll" scroll-y="true"
							@scrolltolower="swiperScrollLower">
						<view class="master-box">
							<view class="" style="width: 92%;margin: 0rpx auto;">
								<view  class="sticky-box sort_container" style="width:100%;margin: 0rpx auto;display: flex;text-align: center;line-height: 90rpx;background-color: transparent;">
									<view style="flex: 1;" @click="paixu(1)" :class="xu==1?'tui_active':'tui_mei'">
										综合排序
										<!-- <text class="iconfont icon-xiangxia" style="font-size: 22rpx;"></text> -->
									</view>
									<view style="flex: 1;" @click="paixu(2)" :class="xu==2?'tui_active':'tui_mei'">
										<text v-if="label2.length>6">{{label2.slice(0,6)+'...' || '地区筛选'}}</text>
										<text v-if="label2.length<=6">{{label2 || '地区筛选'}}</text>
										<text class="iconfont icon-xiangxia"
											style="font-size: 22rpx;"></text>
									</view>
									<!-- <view  @click="jiage(2)" :class="['yihang',tui_type==2?'tui_active':'tui_mei']" style="flex:1;text-align: center;">
										{{label2 || '位置'}}<text class="iconfont icon-xiangxia" style="font-size: 22rpx;"></text>
									</view> -->
									<!-- <view style="flex: 1;" @click="paixu(3)" :class="xu==3?'tui_active':'tui_mei'">
										{{juli_name1 || '商家数量'}}<text class="iconfont icon-xiangxia"
											style="font-size: 22rpx;"></text>
									</view> -->
								</view>
								<view>
									<view @click="shichang(item.id)" v-for="(item,index) in sc_list" :key='index'
										style="width: 100%;box-sizing: border-box;padding: 36rpx 24rpx;border-radius: 20rpx;background-color: #FFFFFF;margin-bottom: 20rpx;">
										<view class="master_item_title break_all" style="color: #000000;font-size: 28rpx;font-weight: 600;line-height: 50rpx;">
											{{item.name}}
											<!-- <text v-if="item.distance"
												style="color: #999999;font-size: 24rpx;float: right;">{{item.distance}}</text> -->
										</view>
										<view style="line-height: 40rpx;color: #999999;font-size: 24rpx;margin: 10rpx 0;">
											<text class="iconfont icon-dizhi"
												style="font-size: 24rpx;color: #999999;margin-right: 10rpx;"></text>
											{{item.address}}
										</view>
										<view style="line-height: 50rpx;">
											<text
												style="color: #E78F29;font-size: 22rpx;padding: 6rpx 20rpx;border-radius: 20rpx;border: 1px solid #E78F29;">
												{{item.firm_num || 0}}个商家
											</text>

										</view>
									</view>
								</view>
								<view style="width:2rpx;height:2rpx;bottom:-2rpx;position:absolute;"></view>
								<view v-if="sc_kk" style="text-align: center;">
									<image
										src="https://static-1310167831.cos.ap-nanjing.myqcloud.com/uploads/20220329/e86889a9b8fd67d8950e4775d67316c.png"
										style="width: 400rpx;" mode="widthFix"></image>
								</view>
								<u-divider color='#717171' bg-color='#f0f2f8' height='80' border-color='#717171' text="暂无数据"
									v-if="sc_list.length==0"></u-divider>
								<u-divider color='#717171' bg-color='#f0f2f8' height='80' border-color='#717171' text="没有更多了"
									v-if="sc_list.length>0 && sc_enmpy"></u-divider>
							</view>
						</view>


						</scroll-view>
					</swiper-item>
					<!-- 关注 -->
					<swiper-item v-if="false">
						<scroll-view :lower-threshold="80"
							:refresher-triggered="refreStatus" @refresherrefresh="handleRefre3"
							:refresher-enabled="true" class="swiper-scroll" scroll-y="true"
							@scrolltolower="swiperScrollLower">
					<!-- 直播动态-->
						<view>
							<view style="width: 92%;margin: 20rpx auto;">
								<view style="display: flex;height: 80rpx;line-height: 80rpx;text-align: center;">
									<view style="flex: 1;position: relative;" @click="zhibo(1)"
										:class="zhi==1?'zhi_active':'zhi_mei'">
										精彩直播
									</view>
									<view style="flex: 1;position: relative;" @click="zhibo(2)"
										:class="zhi==2?'zhi_active':'zhi_mei'">
										直播回放
									</view>
								</view>
								<view style="overflow: hidden;margin-top: 30rpx;" class="zhi_box">
									<view @click="zhibo_xq(item.roomid)" style="width: 48%;border-radius: 20rpx;background-color: #FFFFFF;float: left;"
										v-for="(item,index) in zhi_list" :key='index'>
										<image
											:src="item.cover_img"
											style="width: 100%;display: block;" mode="widthFix"></image>
										<view style="width: 100%;box-sizing: border-box;padding: 30rpx 20rpx;">
											<view style="color: #000000;font-size: 28rpx;font-weight: 600;line-height: 40rpx;"
												class="yihang">
												{{item.anchor_name}}
											</view>
											<view style="color: #666666;font-size: 22rpx;line-height: 50rpx;" class="yihang">
												{{item.name}}
											</view>
											<text
												style="color: #999999;font-size: 24rpx;line-height: 36rpx;border: 1px solid #DCDCDC;display: inline-block;padding: 0 10rpx;">
												10-15 15:00-16:00
											</text>
										</view>

									</view>
								</view>
								<view style="width:2rpx;height:2rpx;bottom:-2rpx;position:absolute;"></view>
								<view v-if="zhi_list.length<=0" style="text-align: center;margin-top: 50rpx;">
									<image  :src="require('@/static/my/no-data.png')"
										style="width: 334rpx;" mode="widthFix"></image>
									<view style="text-align: center;color: #999999;font-size: 30rpx;line-height: 60rpx;">
										暂无直播
									</view>
								</view>
							</view>
						</view>


						</scroll-view>
					</swiper-item>
					<!-- 关注 -->

			</swiper>
			<!-- 推荐 -->
			<!-- 市场 -->
			<!-- 期货交易 -->
			<!-- </aloys-tab> -->
		<!-- 期货交易 -->
		<lb-picker ref="picker" v-model="qihuo" mode="selector" :dataset="{ name: qihuo }" :list="list_arr"
			@confirm="handleConfirm" @change="qihuo_change">
		</lb-picker>
		<lb-picker ref="picker1" v-model="qihuo1" mode="selector" :dataset="{ name: qihuo1 }" :list="list_arr1"
			@confirm="handleConfirm1" @change="qihuo_change1">
		</lb-picker>
		<lb-picker ref="picker2" v-model="qihuo2" mode="selector" :dataset="{ name: qihuo2 }" :list="list_arr2"
			@confirm="handleConfirm2" @change="qihuo_change2">
		</lb-picker>



		<!-- 企业-->

		<lb-picker ref="picker3" v-model="qihuo3" mode="selector" :dataset="{ name: qihuo3 }" :list="list_arr3"
			@confirm="handleConfirm3">
		</lb-picker>
		<lb-picker ref="picker5" v-model="qihuo5" mode="selector" :dataset="{ name: qihuo5 }" :list="list_arr5"
			@confirm="handleConfirm5">
		</lb-picker>
		<lb-picker ref="picker7" v-model="qihuo6" mode="selector" :dataset="{ name: qihuo6 }" :list="list_arr6"
			@confirm="handleConfirm6">
		</lb-picker>
		<lb-picker ref="picker6" v-model="value2" mode="multiSelector" :list="list1" :level="2"
			:dataset="{ name: 'label2' }" @confirm="handleConfirm4">
		</lb-picker>


		<u-picker :show="show" :columns="juli" @confirm="confirm" @cancel="cancel" keyName="name"></u-picker>
		<u-picker :show="show1" :columns="juli1" @confirm="confirm1" @cancel="cancel1" keyName="name"></u-picker>


		<uni-popup id="popup" ref="popup" :type="type_status" :animation="true">
			<view class="" style="background-color: #FFFFFF;padding:20upx 30upx 0;border-radius: 20upx;width: 500rpx;">
				<view
					style="text-align: center;height: 100upx;line-height: 100upx;color: #333333;font-weight: 600;font-size: 32rpx;">
					提示
				</view>
				<view class="popup-content" style="text-align: center;font-size: 28upx;">请授权您的用户信息</view>
				<view class="footer">
					<button @click="quxiao"
						style="flex: 1;background-color: #f3f3f3;color: #333333;margin-right: 20rpx;font-weight: 600;"
						type="default">取消</button>
					<button @click="login" lang="zh_CN" style="flex: 1;background-color: #000000;color: #FFFFFF;"
						open-type="getUserInfo">确定</button>
					<!-- <button @click="submitLink" type="default" class="submit">确认提交</button> -->
				</view>
			</view>
		</uni-popup>
		<uni-popup id="popup" ref="popup1" :type="type_status" :animation="true">
			<view class="" style="background-color: #FFFFFF;padding:20upx 30upx 0;border-radius: 20upx;width: 500rpx;">
				<view
					style="text-align: center;height: 100upx;line-height: 100upx;color: #333333;font-weight: 600;font-size: 32rpx;">
					提示
				</view>
				<view class="popup-content" style="text-align: center;font-size: 28upx;">请授权您的手机号</view>
				<view class="footer">
					<button @click="quxiao1"
						style="flex: 1;background-color: #f3f3f3;color: #333333;margin-right: 20rpx;font-weight: 600;"
						type="default">取消</button>
					<button @getphonenumber="login1" style="flex: 1;background-color: #000000;color: #FFFFFF;"
						open-type="getPhoneNumber">确定</button>

				</view>
			</view>
		</uni-popup>

		<uni-popup id="popup" ref="popup2" :type="type_status" :animation="true">
			<view class="" style="background-color: #FFFFFF;padding:30upx;border-radius: 20upx;width: 500rpx;">
				<!-- <view @click="bgxq" style="line-height: 80rpx;color: #333333;font-size: 26rpx;overflow: hidden;border-bottom: 1px solid #eeeeee;">
					<image src="https://static-1310167831.cos.ap-nanjing.myqcloud.com/uploads/20220609/830b561ca7ce34b5f0558b840716b396.png" style="width: 30rpx;height: 30rpx;float: left;margin-top: 25rpx;" mode=""></image>
					<text style="float: left;margin-left: 20rpx;">不感兴趣</text>
				</view> -->
				<view @click="lhftr" style="line-height: 80rpx;color: #333333;font-size: 26rpx;overflow: hidden;">
					<image src="https://static-1310167831.cos.ap-nanjing.myqcloud.com/uploads/20220609/dc135c36cb2641ef2acffca98da776e0.png" style="width: 30rpx;height: 30rpx;float: left;margin-top: 25rpx;" mode=""></image>
					<text style="float: left;margin-left: 20rpx;">拉黑该企业</text>
				</view>
			</view>
		</uni-popup>


		<image @click="gundong" v-if="da" src="https://frozen-info.oss-cn-shanghai.aliyuncs.com/uploads/miniapp/up.png"
			style="width:80rpx;height:80rpx;position: fixed;right: 10rpx;bottom: 200rpx;z-index: 400;" mode="">
		</image>
		<image class="to_vip" @click="kthy" v-if="is_vip==0 && iosUpAppStore" src="https://static-1310167831.cos.ap-nanjing.myqcloud.com//uploads/20220711/1333d9146ca24627963abc792a6153b9.png"
			style="width:100rpx;height:100rpx;position: fixed;right: 10rpx;bottom: 300rpx;z-index: 400;" mode="">
		</image>
		<image @click="jrqy" v-if="company_check==0 && firm_user!=1" src="https://static-1310167831.cos.ap-nanjing.myqcloud.com/uploads/20230425/347d121a2d9481460b36f3ce7ae0e111.png"
			style="width:100rpx;height:100rpx;position: fixed;right: 10rpx;bottom: 420rpx;z-index: 400;" mode="">
		</image>


		<uni-popup id="popup" ref="popup3" :type="type_status" :animation="true">
			<view class="" style="background-color: #FFFFFF;padding:30upx;border-radius: 20upx;width: 500rpx;">
				<view @click="yijian_phone" style="width: 100%;height: 80rpx;line-height: 80rpx;text-align: center;font-size: 24rpx;background-color: #C9E7E6;color: #1fb0ac;border-radius: 40rpx;margin-bottom: 20rpx;">
					拨打电话
				</view>
				<view @click="yijian_kefu"
					style="width: 100%;height: 80rpx;line-height: 80rpx;text-align: center;font-size: 24rpx;background-color: #1fb0ac;color: #ffffff;border-radius: 40rpx;">
					联系客服
				</view>

			</view>
		</uni-popup>

		<uni-popup id="popup" ref="popup4" :type="type_status" :animation="true">
			<view class="" style="background-color: #FFFFFF;padding:30upx;border-radius: 20upx;width: 600rpx;">
				<view  style="width: 100%;z-index: 5;border-radius:30rpx ;margin: 0 auto 20rpx;position: relative;">

					<input @input="sousuo_changhao" type="text"  class="sou1" placeholder-class="suo1"
						placeholder="请输入厂号"  />
					<image
						src="https://static-1310167831.cos.ap-nanjing.myqcloud.com/uploads/20230801/8f40a867b99ae8c72cc57a9698b6ce81.png"
						class="souicon" mode=""></image>
				</view>
				<scroll-view scroll-y="true" style="height: 600rpx;">

					<view style="width: 100%;overflow: hidden;" class="changhao_box">
						<view class="yihang" @click="qihuo_change2(index)" v-for="(item,index) in yuan_list_arr2" :class="item.id==specification_ids?'ch_active':'ch_as'" style="width: 32%;float: left;height: 60rpx;line-height: 60rpx;text-align: center;border-radius: 30rpx;box-sizing: border-box;padding: 0 10rpx;">
							{{item.name || ''}}
						</view>

					</view>
				</scroll-view>
				<view style="display: flex;line-height: 80rpx;padding-top: 20rpx;background-color: #fff;">
					<!-- <view @click="changhao_qx" style="flex: 1;height: 80rpx;font-size: 30rpx;color: #333333;text-align: center;border-radius:20rpx;background-color: #F1F1F1;">
						取消
					</view> -->
					<view @click="changhao_wc" style="flex: 1;height: 80rpx;font-size: 30rpx;color: #FFFFFF;text-align: center;border-radius:20rpx;background-color: #5EC4C2;">
						确定
					</view>
				</view>
			</view>
		</uni-popup>

		<view v-if="tc_is_show"
			style="width: 100%;height: 100vh;background: rgb(0,0,0,.5);position: fixed;top: 0;left: 0;z-index: 900;">
			<view style="position: relative;height: 100%;width: 100%;">
				<view style="position: absolute;top: 10%;left: 50%;transform: translateX(-50%);">
					<image @click="bgtu_tiao" :src="tc_image"
						style="width: 600rpx;height: 800rpx;">
					</image>
					<view class="" @click="bgguan"
						style="text-align: center;width: 100%;margin-top: 50rpx;">
						<image src="../../static/guanbi.png" style="width: 60rpx;height: 60rpx;"></image>
					</view>
				</view>
			</view>
		</view>
		<mrhardTabbar  :newsNum="xiao_num"></mrhardTabbar>
    <noLoginToast ref="noLoginToast" />
    <callPhone ref="callPhone" />
    <pushPermigetssion ref="pushPermigetssion"/>
	</view>
</template>

<script>
import isAuditIos from '@/common/isAuditIos.js'
import { uploadUrl } from '@/common/setting.js';

	// import QQMapWX from '@/common/qqmap-wx-jssdk.min.js'
	let qqmap;
	import LbPicker from '@/components/lb-picker'
	import areaData from '@/sub/pages/area-data-min.js'
	import mrhardTabbar from "../../components/mrhard-tabbar.vue";
	import vgtTab from '@/components/vgt-tab.vue'
	import aloysTab from "@/components/aloys-tab/aloys-tab.vue"
	import forignCompany from '../components/forignCompany/index.vue'
	import {
		genTestUserSig
	} from '@/im/debug/GenerateTestUserSig.js';
	const app = getApp();
	import TIM from 'tim-wx-sdk/tim-wx-friendship.js';
	import COS from 'cos-wx-sdk-v5';
	export default {
		components: {
			mrhardTabbar,
			vgtTab,
			LbPicker,
			aloysTab,
			forignCompany
		},
		mixins: [isAuditIos],
		data() {
			return {
				tabList: [
					{text: '海外报价', title: '首页',type: 'msg',index: 0},
					{text: '企业', title: '首页',type: 'group',index: 1},
					{text: '市场', title: '首页',type: 'friends',index: 2}
				],
    		selectIndex: 1,
				tc_is_show: false,
				tc_image: '',
				jggy_name:'',
				list_tabs: [
					{
						title: '海外报价',
						content: '恭喜【厦门陈纪乐食品有限公司】成功入驻'
					},{
						title: '企业',
						content: '恭喜【厦门陈纪乐食品有限公司】成功入驻'
					},
					{
						title: '市场',
						content: '恭喜【厦门陈纪乐食品有限公司】成功入驻'
					},
					{
						title: '直播动态',
						content: '恭喜【厦门陈纪乐食品有限公司】成功入驻'
					}
				],
				refreStatus: false,
				swiperIndex: 0, //当前的swiperindex
				navItemWidth: '28', //选中下划线的宽度
				navItemLeft: 0, //选中下划线的显示位置
				scrollToLeft: 0, //scrollview需要滚动的距离
				navInfos: [], //所有navitem的节点信息
				parentLeft: 0, //nav盒子的节点信息
				componentWidth: 0, //nav盒子的宽度
				tabs: [{
						title: '推荐'
					}, {
						title: '市场'
					}, {
						title: '期货交易'
					}
				],
				fl_xianshi:false,
				type_status:'center',
				scrollTop: 0,
				navheight: 0,
				statusBarHeight: 0,
				menuHeight: 0,
				haveBack: false,
				btnHeight: 30,
				btnWidth: 70,
				isScroll: true,
				slotheight: '0',
				list3: [],
				firm_user:0,
				type: 0,
				xiao: true,
				tui_type: 1,
				zhi: 1,
				xu: 1,
				qi: 1,
				qh_type: 1,
				qihuo: '',
				list_arr: [],
				yuan_list_arr: [],
				qihuo1: '',
				list_arr1: [],
				yuan_list_arr1: [],
				qihuo2: '',
				list_arr2: [],
				yuan_list_arr2: [],
				qh_enmpy: false,
				qh_kk: false,
				qhjy_list: [],
				qhjy_page: 1,
				craft_ids: '',
				place_ids: '',
				specification_ids: '',
				manage_category_ids: '',
				brand_id: '',
				is_vip: 2,
				qhjyfl_list: [],
				fl_type: -1,
				pp_list: [],
				qyhyfl_list: [],
				qiye_enmpy: false,
				qiye_kk: false,
				qiye_page: 1,
				qiye_list: [],
				qihuo3: '',
				bazaar_id: '',
				province: '',
				city: '',
				list_arr3: [],
				yuan_list_arr3: [],
				leixing: '',
				qihuo5: '',
				list_arr5: [],
				yuan_list_arr5: [],
				category_id:'',
				qihuo6: '',
				list_arr6: [],
				yuan_list_arr6: [],
				value2: [],
				label2: '',
				list1: areaData,
				// 市场
				sc_list: [],
				sc_page: 1,
				sc_enmpy: false,
				sc_kk: false,
				index_order: 1,
				distance_order: 0,
				firm_order: 0,
				longitude: '',
				latitude: '',
				juli: [
					[{
							id: 1,
							name: '由近及远'
						},
						{
							id: 2,
							name: '由远及近'
						}
					]
				],
				juli_name: '',
				show: false,
				juli1: [
					[{
							id: 1,
							name: '由多到少'
						},
						{
							id: 2,
							name: '由少到多'
						}
					]
				],
				juli_name1: '',
				show1: false,
				keywords: '',
				value3: [],
				label3: '',
				lbt_list:[],
				lh_id:'',
				lh_index:'',
				daicai_phone:'',
				zhi_xs:{},
				chat_look:'',
				da:false,
				is_vip: 0,
				company_check:0,
				zhi:1,
				zhi_list:[],
				xiao_num:'',
				im_br_id:'',
				xuan_sheng:'',
				xuan_shi:'',
				is_server:1,
				zuixin:{},
				iosUpAppStore: false
			}
		},
		// onReady() {
		// 	qqmap = new QQMapWX({
		// 		// key: ‘PATBZ-EZURU-G***FU-GCBRO-LWFXC’
		// 		key: 'FOPBZ-BUOO4-5RZUS-DHXVW-EBIYJ-PDBSC'
		// 	});
		// 	// this.address_xx()
		// },
		// onReachBottom() {
		// 	if (this.type == 1) {
		// 		if (this.qiye_enmpy) {
		// 			return
		// 		} else {
		// 			console.log(11111111111111)
		// 			this.qiye_lebiao()
		// 		}
		// 	} else if (this.type == 2) {
		// 		if (this.sc_enmpy) {
		// 			return
		// 		} else {

		// 		}
		// 	} else if (this.type == 3) {
		// 		if (this.qh_enmpy) {
		// 			return
		// 		} else {
		// 			this.qijylist()
		// 		}
		// 	}
		// },


		// onPullDownRefresh() {
		// 	this.zhi=1
		// 	this.zhiboxinxi()
		// 	this.province=uni.getStorageSync('sheng') || '全国'
		// 	this.city=uni.getStorageSync('shi') || '全国'
		// 	this.keywords = ''
		// 	this.userinfo()
		// 	// this.address_xx()
		// 	this.qi = 1
		// 	this.qhjy_page = 1
		// 	this.qhjy_list = []
		// 	this.qihuo = ''
		// 	this.list_arr = []
		// 	this.yuan_list_arr = []
		// 	this.qihuo1 = ''
		// 	this.list_arr1 = []
		// 	this.yuan_list_arr1 = []
		// 	this.qihuo2 = ''
		// 	this.list_arr2 = []
		// 	this.yuan_list_arr2 = []
		// 	this.qihuo3 = ''
		// 	this.list_arr3 = []
		// 	this.yuan_list_arr3 = []
		// 	this.qh_enmpy = false
		// 	this.qh_kk = false
		// 	this.qh_type = 1
		// 	this.fl_type = -1
		// 	this.craft_ids = ''
		// 	this.place_ids = ''
		// 	this.specification_ids = ''
		// 	this.manage_category_ids = ''
		// 	this.jggy()
		// 	this.chanqu()
		// 	this.baozhuang()
		// 	this.qhjy_fl()
		// 	this.pp()
		// 	this.qijylist()
		// 	// 企业 推荐 分类

		// 	this.qiye_enmpy = false
		// 	this.qiye_kk = false
		// 	this.qiye_page = 1
		// 	this.qiye_list = []
		// 	this.bazaar_id = ''
		// 			// 这个注意this.province = ''
		// 			// 这个注意 this.city = ''
		// 	this.label2 = ''
		// 	this.value2 = []
		// 	this.label2 = ''
		// 	this.qihuo3 = ''
		// 	this.list_arr3 = []
		// 	this.yuan_list_arr3 = []
		// 	this.qiye_lebiao()

		// 	this.tuijian_shichang()
		// 	this.leixing = ''
		// 	this.qihuo5 = ''
		// 	this.list_arr5 = []
		// 	this.yuan_list_arr5 = []
		// 	this.leixing_list()
		// 	this.category_id=''
		// 	this.qihuo6 = ''
		// 	this.list_arr6 = []
		// 	this.yuan_list_arr6 = []
		// 	this.qy_fl_list()

		// 	// 市场
		// 	this.sc_list = []
		// 	this.sc_page = 1
		// 	this.sc_enmpy = false
		// 	this.sc_kk = false
		// 	this.index_order = 1
		// 	this.distance_order = 0
		// 	this.firm_order = 0
		// 	this.juli_name = ''
		// 	this.show = false
		// 	this.juli_name1 = ''
		// 	this.show1 = false
		// 	this.xu = 1
		// 	setTimeout(function() {
		// 		uni.stopPullDownRefresh();
		// 	}, 2000);
		// },
		onShareAppMessage(e) {
			return {
				title: '冻品人都在用的信息服务平台',
				path: '/pages/index/qiye',
			}
		},
		onShareTimeline(e) {
			return {
				title: '冻品人都在用的信息服务平台',
				path: '/pages/index/qiye',
			}
		},
		async onReady() {
			// let result = await this.$refs.pushPermigetssion.open()
		},
		onLoad(option) {
			console.log('%c [ option ]-1190', 'font-size:13px; background:pink; color:#bf2c9f;', option)
			let that=this
			let qiyeType = uni.getStorageSync('qiye_type')
			console.log('%c [ qiyeType ]-1193', 'font-size:13px; background:pink; color:#bf2c9f;', qiyeType)
			if(qiyeType){
				// qiyeType = qiyeType
				this.swiperIndex=qiyeType
				this.selectIndex = Number(qiyeType)
				this.taggleNav(qiyeType)
			}else{
				this.swiperIndex=0
				this.type=0
			}
			uni.$on('changeCompanyTab', (res) => {
				if (res) {
					let qiyeType = res
					this.swiperIndex=qiyeType
					this.selectIndex = Number(qiyeType)
					this.taggleNav(qiyeType)
				}
			})
			this.province=uni.getStorageSync('sheng') || '全国'
			this.city=uni.getStorageSync('shi') || '全国'
			this.keywords = ''

			// this.address_xx()
			this.lunbotu()
			this.zhiboxinxi()
			// this.tuijian_shichang()
			that.jggy()
			that.chanqu()
			that.baozhuang('')
			that.qhjy_fl()
			that.pp()
			// that.qijylist()
			that.qy_fl_list()
			// that.qiye_lebiao()
			console.log(22222222222)
			// that.leixing_list()
			// that.sc()
			// this.shifou_zhi()
			this.qh_kk=false
			this.qhjy_list=[]
			this.qh_enmpy=false
			this.qhjy_page=1
			this.qijylist()
			this.qiye_page = 1
			this.qiye_list = []
			this.qiye_enmpy = false
			this.qiye_kk = false
			this.qiye_lebiao()
			this.xu=1
			this.xuan_sheng=''
			this.xuan_shi=''
			this.label2=''
			this.province= uni.getStorageSync('sheng') || '全国'
			this.city=uni.getStorageSync('shi') || '全国'
			this.sc_list = []
			this.sc_page = 1
			this.sc_enmpy = false
			this.sc_kk = false
			this.sc()
			// this.qi = 1
			// this.qhjy_page = 1
			// this.qhjy_list = []
			// this.qihuo = ''
			// this.list_arr = []
			// this.yuan_list_arr = []
			// this.qihuo1 = ''
			// this.list_arr1 = []
			// this.yuan_list_arr1 = []
			// this.qihuo2 = ''
			// this.list_arr2 = []
			// this.yuan_list_arr2 = []
			// this.qihuo3 = ''
			// this.list_arr3 = []
			// this.yuan_list_arr3 = []
			// this.qh_enmpy = false
			// this.qh_kk = false
			// this.qh_type = 1
			// this.fl_type = -1
			// this.craft_ids = ''
			// this.place_ids = ''
			// this.specification_ids = ''
			// this.manage_category_ids = ''
			// this.jggy()
			// this.chanqu()
			// this.baozhuang()
			// this.qhjy_fl()
			// this.pp()
			// this.qijylist()
			// 企业 推荐 分类
			// this.qy_fl_list()
			// this.qiye_enmpy = false
			// this.qiye_kk = false
			// this.qiye_page = 1
			// this.qiye_list = []
			// this.bazaar_id = ''
					// 这个注意this.province = ''
					// 这个注意 this.city = ''
			// this.label2 = ''
			// this.value2 = []
			// this.label2 = ''
			// this.qihuo3 = ''
			// this.list_arr3 = []
			// this.yuan_list_arr3 = []

			// this.tuijian_shichang()
			// this.leixing = ''
			// this.qihuo5 = ''
			// this.list_arr5 = []
			// this.yuan_list_arr5 = []
			// this.leixing_list()


			// 市场
			// this.sc_list = []
			// this.sc_page = 1
			// this.sc_enmpy = false
			// this.sc_kk = false
			// this.index_order = 1
			// this.distance_order = 0
			// this.firm_order = 0
			// this.juli_name = ''
			// this.show = false
			// this.juli_name1 = ''
			// this.show1 = false
			// this.xu = 1
		},
		onShow() {
			if(uni.getStorageSync('tan_type')!=1){
				this.tankuang()
			}
			if (uni.getStorageSync('token')) {
				this.denglu_im()
				this.xiao_num=uni.getStorageSync('xiaoxi_num')
			} else {
				uni.setStorageSync('xiaoxi_num', 0)
				this.xiao_num = 0
			}
			this.userinfo()
			this.shuju()
			this.keywords = ''
			if(uni.getStorageSync('qiye_type')){
				console.log(uni.getStorageSync('qiye_type'),1234554321)
				this.type=2
				this.qie(2)
				uni.removeStorageSync('qiye_type')
			}
			if(this.swiperIndex==1){
				if(uni.getStorageSync('xuan_sc_type')==1){
					this.label2=this.xuan_sheng+'-'+this.xuan_shi
					this.sc_list = []
					this.sc_page = 1
					this.sc_enmpy = false
					this.sc_kk = false
					this.sc()
				}else{

				}
			}

			// if(uni.getStorageSync('shi') && uni.getStorageSync('shi')!=this.city){
			// 	this.qiye_page=1
			// 	this.qiye_enmpy=false
			// 	this.qiye_kk=false
			// 	this.qiye_list=[]
			// 	this.city=uni.getStorageSync('shi')
			// 	this.province=uni.getStorageSync('sheng')

			// 	this.tui_type=1
			// 	this.bazaar_id=''
			// 	this.qihuo3=''
			// 	this.list_arr3=[]
			// 	this.yuan_list_arr3 = []
			// 	this.tuijian_shichang()

			// 	this.sc_enmpy=false
			// 	this.sc_kk=false
			// 	this.sc_page=1
			// 	this.sc_list=[]

			// }else{
			// 	this.qiye_page=1
			// 	this.qiye_enmpy=false
			// 	this.qiye_kk=false
			// 	this.qiye_list=[]

			// 	this.tui_type=1
			// 	this.bazaar_id=''
			// 	this.qihuo3=''
			// 	this.list_arr3=[]
			// 	this.yuan_list_arr3 = []
			// 	this.tuijian_shichang()

			// 	this.sc_enmpy=false
			// 	this.sc_kk=false
			// 	this.sc_page=1
			// 	this.sc_list=[]

			// }
			console.log(this.type,147852)
		},
		methods: {
    	toSwiperDetail(e) {
				// uni.navigateTo({
				// 	url: this.lbt_list[e].link_url
				// })
				// return
				// let isLogin = await this.$refs.noLoginToast.open()
				// if (isLogin) {
				// 	let isHasMobile = await this.$refs.noLoginToast.getPhoneNumber()
				// 	if (!isHasMobile) {
				// 		return
				// 	}
				// } else {
				// 	return
				// }
				// APP首页BANN图的跳转地址如下：BANN图广告公众号跳转地址：--dgh.html
				// BANN图广告小程序跳转地址---》dx.html
				// 南美白虾广告跳转地址-》--》dfreshtl.html
				const swiperLinkUrl = [
					'assets/protocol/dfreshtl.html',
					'assets/protocol/dgh.html',
					'assets/protocol/dx.html'
				]
				uni.navigateTo({
					url: '/subpages/pages/webview/index?linkUrl=' + uploadUrl + swiperLinkUrl[e]
				})
			},
			// 首页弹框图片
			tankuang() {
				this.post('api/index/showVipPoster', '', false).then(res => {
					console.log(res)
					if (res.code == 1) {
						if (res.data.status ==1) {
							this.tc_is_show = true
							this.tc_image = res.data.poster
						} else {
							this.tc_is_show = false
						}
					}
				})
			},

			// 优惠券
			async bgtu_tiao() {
				this.tc_is_show = false
				let isLogin = await this.$refs.noLoginToast.open()
				if (isLogin) {
					let isHasMobile = await this.$refs.noLoginToast.getPhoneNumber()
					if (!isHasMobile) {
						return
					}
				} else {
					return
				}
				uni.navigateTo({
					url: '../../subpages/pages/vip'
				})
			},
			// 背景关闭
			bgguan() {
				this.tc_is_show = false
				uni.setStorageSync('tan_type','1')
			},

			shuju() {
				this.post1('api/chat', '',false).then(res => {
					console.log(res, 147)
					if (res.code == 1) {
						this.zuixin = res.data
					}
				})
			},
			denglu_im() {

				const userID = uni.getStorageSync('mobile2').toString();
				const userSig = genTestUserSig(userID).userSig;
				app.globalData.userInfo = {
					userSig,
					userID
				};

				uni.setStorageSync('userInfo', app.globalData.userInfo);

				// 登录腾讯im
				uni.$TUIKit
					.login({
						userID: userID,
						userSig: userSig
					})
					.then(res => {
						this.$store.commit('setToken', app.globalData.userInfo);

						// uni.$TUIKit.on(uni.$TUIKitEvent.CONVERSATION_LIST_UPDATED, this.onConversationListUpdated);
						// this.getConversationList();
					})
					.catch(() => {});
			},
			async dingyue(){
			 let result = await	this.$refs.pushPermigetssion.getQuanxian()
			 console.log('%c [ result ]-1570', 'font-size:13px; background:pink; color:#bf2c9f;', result)
			},
			// 大分类12311111111111111111111111111111111111111111111111111111111111
			// 获取dom信息
			init() {
				const query = uni.createSelectorQuery().in(this);
				query.select('.uni-nav').fields({
					rect: true,
					size: true
				}, res => {
					this.parentLeft = res.left;
					this.componentWidth = res.width;
					console.log('res==>', res);
				});
				query.selectAll('.nav-item').fields({
					rect: true,
					size: true
				}, data => {
					data.forEach((item, index) => {
						if (index == 0) {
							this.navItemWidth = item.width;
							this.navItemLeft = item.left;
						}
						this.navInfos.push({
							width: item.width,
							left: item.left
						});

					});
				});
				console.log(this.navInfosm, 1223333)
				query.exec();
			},
			// 点击导航切换swiper
			taggleNav(val) {
				console.log(val,'liuyang123456')
				this.swiperIndex = val - 1;
				this.qie(this.swiperIndex)
			},
			// 滚动tabs以及移动下划线
			scrollDom() {
				let info = this.navInfos[this.swiperIndex];
				let offsetLeft = info.left - this.parentLeft;
				let scrollLeft = offsetLeft - (this.componentWidth - info.width) / 2;
				this.scrollToLeft = scrollLeft < 0 ? 0 : scrollLeft;
				this.navItemLeft = this.navInfos[this.swiperIndex].left;
				console.log(this.navItemLeft,111111)
				setTimeout(() => {
					this.navItemWidth = info.width;
				}, 50);
			},
			// swiper的index变动
			swiperChange(e) {

				this.swiperIndex = e.detail.current;
				this.scrollDom();
				this.$emit('currentIndex', this.swiperIndex);
				this.qie(this.swiperIndex)
			},
			// tabs-scrollview触底
			handleScroll(e) {
				this.scrollDom();
			},
			// swiper-ScrollLower触底
			swiperScrollLower() {
				// uni.showToast({
				// 	icon: 'none',
				// 	title: `此时为${this.list_tabs[this.swiperIndex]}触底111111`
				// });
				console.log(this.type,124578,this.swiperIndex)
				if (this.swiperIndex == 1) {
					if (this.qiye_enmpy) {
						return
					} else {
						console.log(11111111111111)
						this.qiye_page++
						this.qiye_lebiao()
					}
				} else if (this.swiperIndex == 2) {
					if (this.sc_enmpy) {
						return
					} else {
						this.sc_page++
						this.sc()
					}
				} else if (this.swiperIndex == 0) {
					if (this.qh_enmpy) {
						return
					} else {
						this.qhjy_page++
						this.qijylist()
					}
				}

			},
			// 生成列表数据
			getData() {
				uni.showLoading({
					title: ''
				});
				setTimeout(() => {
					for (let index = 0; index < 10; index++) {
						let arr = this.list_tabs[this.swiperIndex].content;
						this.$set(arr, arr.length, Math.random() + '-' + index + this.list_tabs[this.swiperIndex]
							.title);
					}
					uni.hideLoading();
				}, 1000);
				console.log(this.list_tabs[this.swiperIndex]);
			},
			// 下拉事件
			// 下拉事件
			handleRefre1() {
				this.refreStatus = true;
				this.province=uni.getStorageSync('sheng') || '全国'
				this.city=uni.getStorageSync('shi') || '全国'
				this.tui_type = 1
				this.qihuo3 = ''
				this.list_arr3 = []
				this.yuan_list_arr3 = []
				this.qiye_enmpy = false
				this.qiye_kk = false
				this.qiye_page = 1
				this.qiye_list = []
				this.bazaar_id = ''
				// this.province = ''
				// this.city = ''
				this.leixing = ''
				this.label2 = ''
				this.value2 = []
				this.qiye_lebiao()
				this.tuijian_shichang()
				this.leixing = ''
				this.qihuo5 = ''
				this.list_arr5 = []
				this.yuan_list_arr5 = []
				this.leixing_list()
				this.category_id=''
				this.qihuo6 = ''
				this.list_arr6 = []
				this.yuan_list_arr6 = []
				this.qy_fl_list()
				setTimeout(() => {
					uni.hideLoading();
					this.refreStatus = false;
				}, 1000);


			},
			handleRefre2() {
				this.xuan_shi=''
				this.xuan_sheng=''
				uni.removeStorageSync('xuan_sc_type')
				this.refreStatus = true;
				this.sc_list = []
				this.sc_page = 1
				this.sc_enmpy = false
				this.sc_kk = false
				this.index_order = 1
				this.distance_order = 0
				this.firm_order = 0
				this.juli_name = ''
				this.show = false
				this.juli_name1 = ''
				this.label2=''
				this.show1 = false
				this.xu = 1
				this.sc()
				setTimeout(() => {
					uni.hideLoading();
					this.refreStatus = false;
				}, 1000);
			},
			handleRefre3() {
				this.refreStatus = true;
				this.fl_type = -1
				this.qhjyfl_list = []
				this.qhjy_page = 1
				this.qhjy_list = []
				this.qihuo = ''
				this.list_arr = []
				this.yuan_list_arr = []
				this.qihuo1 = ''
				this.list_arr1 = []
				this.yuan_list_arr1 = []
				this.qihuo2 = ''
				this.list_arr2 = []
				this.yuan_list_arr2 = []

				this.qh_enmpy = false
				this.qh_kk = false
				this.qh_type = 1
				this.craft_ids = ''
				this.place_ids = ''
				this.specification_ids = ''
				this.manage_category_ids = ''
				this.qhjy_list = []
				this.qhjy_page = 1
				this.jggy()
				this.chanqu()
				this.baozhuang('')
				this.qhjy_fl()
				this.pp()
				this.qijylist()
				setTimeout(() => {
					uni.hideLoading();
					this.refreStatus = false;
				}, 1000);
			},
			handleRefre4() {
				this.refreStatus = true;
				this.zhi=1
				this.zhiboxinxi()
				setTimeout(() => {
					uni.hideLoading();
					this.refreStatus = false;
				}, 1000);
			},




			// 直播
			zhibo(index) {
				this.zhi = index
				this.zhiboxinxi()
			},
			async zhibo_xq(id){

				let isLogin = await this.$refs.noLoginToast.open()
				if (isLogin) {
					let isHasMobile = await this.$refs.noLoginToast.getPhoneNumber()
					if (!isHasMobile) {
						return
					}
				} else {
					return
				}
				let roomId = id
				console.log(roomId,123456789)
				if (roomId){
					// let customParams = encodeURIComponent(JSON.stringify({ path: 'pages/index/index', pid: 1 }))
					// this.setData({
					//   roomId: roomId,
					//   customParams: customParams
					// })
					uni.navigateTo({
						url: `plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=${roomId}`,
					})
				}
			},
			// 直播信息
			zhiboxinxi(){
				this.post('api/live/lists',{type:this.zhi},false).then(res=>{
					console.log(res)
					if(res.code==1){
						this.zhi_list=res.data
					}
				})
			},
			// 滚动到顶部
			gundong() {
				uni.pageScrollTo({
					scrollTop: 0
				})
			},
			async kthy(){
				let isLogin = await this.$refs.noLoginToast.open()
				if (isLogin) {
					let isHasMobile = await this.$refs.noLoginToast.getPhoneNumber()
					if (!isHasMobile) {
						return
					}
				} else {
					return
				}
				uni.navigateTo({
					url:'../../subpages/pages/vip'
				})
			},
			async jrqy(){
				let isLogin = await this.$refs.noLoginToast.open()
				if (isLogin) {
					let isHasMobile = await this.$refs.noLoginToast.getPhoneNumber()
					if (!isHasMobile) {
						return
					}
				} else {
					return
				}
				uni.navigateTo({
					url:'../../subpages/pages/qy_leibie'
				})
			},
			// 判断是否隐藏直播
			shifou_zhi(){
				this.post('api/index/check','',false).then(res=>{
					console.log(res)
					if(res.code==1){
						this.zhi_xs=res.data
					}
				})
			},
			async yijian(phone,id){
				console.log('%c [ id ]-1891', 'font-size:13px; background:pink; color:#bf2c9f;', id)
				let isLogin = await this.$refs.noLoginToast.open()
				if (isLogin) {
					let isHasMobile = await this.$refs.noLoginToast.getPhoneNumber()
					if (!isHasMobile) {
						return
					}
				} else {
					return
				}
				this.im_br_id=id
				this.$refs.popup3.open()
				this.daicai_phone=phone
			},
			yijian_phone(){
				this.$refs.popup3.close()
				this.callPhone(this.daicai_phone)
				// uni.makePhoneCall({
				// 	phoneNumber: this.daicai_phone //仅为示例
				// });
			},
			callPhone(phoneNumber) {
				console.log(phoneNumber)
				this.$refs.callPhone.open(phoneNumber)
			},
			async yijian_kefu(){
				let that=this
				this.$refs.popup3.close()
				let isLogin = await this.$refs.noLoginToast.open()
				if (isLogin) {
					let isHasMobile = await this.$refs.noLoginToast.getPhoneNumber()
					if (!isHasMobile) {
						return
					}
				} else {
					return
				}
				this.post('api/im/im/purchasing',{brand_id:this.im_br_id},true).then(res=>{
					if(res.code==1){
						let aid='GROUP'+res.data.group_id
						if(uni.getStorageSync('userinfo').is_server==1){
							uni.setStorageSync('user_id',res.data.user.id)
							uni.setStorageSync('friend_name', res.data.user.remark_name || res.data.user.name)
						}else{
							uni.setStorageSync('user_id',0)
							uni.setStorageSync('friend_name', res.data.server.name)
						}
						uni.navigateTo({
								url: `/im/chat/dan_chat?conversationID=${aid}`,
									// url: `/im/login/login`,
						})
					}else{
									uni.showToast({
										title: res.msg,
										icon: "none",
										duration: 1000
									})
								}
				})
			},

			// 轮播图
			lunbotu() {
				this.post('api/index/banner', {type:2}, false).then(res => {
					console.log(res)
					if (res.code == 1) {
						this.lbt_list = res.data
						for (let i = 0; i < res.data.length; i++) {
							this.list3.push(res.data[i].banner_image)
						}
					}
				})
			},
			quxiao1() {
				this.$refs.popup1.close()
			},
			login1(e) {
				console.log(e)
				let that = this
				this.$refs.popup1.close()
				uni.login({
					provider: 'weixin',
					success: (code) => {
						console.log(code)
						this.post('api/wechat/phone', {
							code: code.code,
							iv: e.detail.iv,
							encryptedData: e.detail.encryptedData
						}, true).then(res => {
							console.log(res, '123455')
							if (res.code == 1) {
								uni.setStorageSync('mobile', res.data.phoneNumber)
								uni.setStorageSync('mobile2',res.data.mobile2)
								that.denglu_im()
								that.tankuang()
							}else{
								uni.showToast({
									title: res.msg,
									icon: "none",
									duration: 1000
								})
							}

						})

					}
				})
			},
			async xiaqiye(type,id,name){
				// let isLogin = await this.$refs.noLoginToast.open()
				// if (isLogin) {
				// 	let isHasMobile = await this.$refs.noLoginToast.getPhoneNumber()
				// 	if (!isHasMobile) {
				// 		return
				// 	}
				// } else {
				// 	return
				// }
				if(type==8){
					this.qie(3)
				}else if(type==9){
					uni.setStorageSync('index','3')
					uni.switchTab({
						url:'/pages/index/index'
					})
				}else{
					uni.navigateTo({
						url:'../../subpages/pages/xia_qiye?type='+type+'&pid='+id+'&name='+name
					})
				}
			},
			// 位置
			dizhi() {
				uni.navigateTo({
					url: '../../fenbao/pages/wenzhang/weizhi?sheng='+this.province+'&shi='+this.city
				})
			},
			// 获取位置
			address_xx() {
				let that = this
				uni.authorize({
					scope: 'scope.userLocation',
					success() { //1.1 允许授权
						that.hqxxdd()
					},
					fail() { //1.2 拒绝授权
						uni.showModal({
							content: '检测到您没打开获取信息功能权限，是否去设置打开？',
							confirmText: "确认",
							cancelText: '取消',
							success: (res) => {
								if (res.confirm) {
									uni.openSetting({
										success: (res) => {
											console.log(res);
											that.hqxxdd()
										}
									})
								} else {
									console.log('取消');
									return false;
								}
							}
						})
						return false;
					}
				})
			},
			// 获取详细地址
			// hqxxdd(e) {
			// 	let that = this

			// 		type: 'wgs84',
			// 		success(res) {
			// 			console.log(res)
			// 			that.longitude = res.longitude
			// 			that.latitude = res.latitude
			// 			console.log('当前位置的经度：' + res.longitude);
			// 			console.log('当前位置的纬度：' + res.latitude);
			// 			uni.setStorageSync('longitude', res.longitude)
			// 			uni.setStorageSync('latitude', res.latitude)
			// 			qqmap.reverseGeocoder({
			// 				location: {
			// 					latitude: res.latitude,
			// 					longitude: res.longitude
			// 				},
			// 				success(re) {
			// 					console.log(re)
			// 					that.province = re.result.address_component.province
			// 					that.city = re.result.address_component.city
			// 					that.jggy()
			// 					that.chanqu()
			// 					that.baozhuang()
			// 					that.qhjy_fl()
			// 					that.pp()
			// 					that.qijylist()
			// 					that.qy_fl_list()

			// 					that.tuijian_shichang()
			// 					that.leixing_list()
			// 					that.sc()
			// 					uni.setStorageSync('address', re.result.address)
			// 				},
			// 				fail(res) {
			// 					uni.showToast({
			// 						title: '定位失败',
			// 						duration: 2000,
			// 						icon: "none"
			// 					})
			// 					console.log(res);
			// 				},
			// 				complete(res) {

			// 				}
			// 			})
			// 		}

			// 	});
			// },

			// 搜索
			async search() {
				uni.navigateTo({
					url: '../../fenbao/pages/wenzhang/sousuo?keywords=' + this.keywords + '&type=' + this.type + '&index=' + 2+'&province='+this.province+'&city='+this.city
				})
			},
			// 获取市场列表
			sc(click) {
				// this.refreStatus=false
				let data = {
					index_order: this.index_order,
					distance_order: this.distance_order,
					firm_order: this.firm_order,
					longitude: this.longitude,
					latitude: this.latitude,
					page: this.sc_page,
					limit: 10,
					province:this.xuan_sheng || this.province,
					city: this.xuan_shi || this.city
				}
				this.post('api/bazaar', data, false).then(res => {
					console.log(res)
					if (res.code == 1) {
						if (this.sc_page == 1) {
							if (res.data == null || res.data.length == 0) {
								this.sc_kk = true
								this.sc_enmpy = true
								return
							} else if (res.data.length < 10) {
								this.sc_enmpy = true
							}
						} else {
							if (res.data == null || res.data.length == 0) {
								this.sc_enmpy = true
								return
							} else if (res.data.length < 10) {
								this.sc_enmpy = true
							}
						}
						if(click==1){
							this.sc_list=[]
							this.sc_page=1
							this.sc_kk = false
							this.sc_enmpy = false
						}

						this.sc_list.push(...res.data.data)

						// console.log(this.sc_list, 123456789)
					} else {
						this.sc_kk = true
						uni.showToast({
							title: res.msg,
							icon: "none",
							duration: 1000
						})
					}
				})
			},
			// 距离
			confirm(e) {
				this.show = false
				console.log(e)
				this.juli_name = e.value[0].name
				this.distance_order = e.value[0].id
				this.juli_name1 = ''
				this.firm_order = 0
				this.index_order = 0
				this.sc_enmpy = false
				this.sc_kk = false
				this.sc_list = []
				this.sc_page = 1
				this.sc()
			},
			cancel() {
				this.show = false
			},
			// 商家数量
			confirm1(e) {
				this.show1 = false
				console.log(e)
				this.juli_name1 = e.value[0].name
				this.firm_order = e.value[0].id
				this.juli_name = ''
				this.distance_order = 0
				this.index_order = 0
				this.sc_enmpy = false
				this.sc_kk = false
				this.sc_list = []
				this.sc_page = 1
				this.sc()
			},
			cancel1() {
				this.show1 = false
			},
			// 企业 推荐 分类
			qy_fl_list() {
				this.yuan_list_arr6=[]
				this.list_arr6=[]
				this.post('api/firm_data/category', '', false).then(res => {
					console.log(res, 123)
					if (res.code == 1) {
						this.qyhyfl_list = res.data
						this.yuan_list_arr6=res.data
						for (let i = 0; i < res.data.length; i++) {
							this.list_arr6.push(res.data[i].name)
						}
						if(res.data.length>10){
							this.fl_xianshi=true
						}
					}
				})
			},
			// 企业列表
			qiye_lebiao(click) {
				let data = {
					page: this.qiye_page,
					limit: 10,
					type: this.leixing,
					province: this.province,
					city: this.city,
					bazaar_id: this.bazaar_id,
					manage_id:this.category_id
				}
				this.post('api/firm_data', data, false).then(res => {
					console.log(res,'liuyang')
					if (res.code == 1) {
						if (this.qiye_page == 1) {
							if (res.data.data == null || res.data.data.length == 0) {
								this.qiye_kk = true
								this.qiye_enmpy = true
								return
							} else if (res.data.data.length < 10) {
								this.qiye_enmpy = true
							}
						} else {
							if (res.data.data == null || res.data.data.length == 0) {
								this.qiye_enmpy = true
								return
							} else if (res.data.data.length < 10) {
								this.qiye_enmpy = true
							}
						}
						if(click==1){
							this.qiye_list=[]
							this.qiye_page=1
							this.qiye_kk = false
							this.qiye_enmpy = false
						}

						this.qiye_list.push(...res.data.data)
						console.log(this.qiye_list, 'liuyang123456789')
					} else {
						this.qiye_kk = true
						uni.showToast({
							title: res.msg,
							icon: "none",
							duration: 1000
						})
					}
				})
			},




			// 代采介绍
			async dcjs(id) {
				let isLogin = await this.$refs.noLoginToast.open()
				if (!isLogin) {
					return
				}
				uni.navigateTo({
					url: '../../subpages/pages/dcjs?id=' + id
				})
			},
			userinfo() {
				this.post('api/client/info', '', false).then(res => {
					console.log(res)
					if (res.code == 1) {
						this.is_vip = res.data.is_vip
						this.chat_look=res.data.chat_look
						this.firm_user=res.data.firm_user
						this.company_check=res.data.company_check
						this.is_server=res.data.is_server
					}
				})
			},
			getSysHeightInfo() {
				const that = this
				let statusBarHeight, menuButtonObject, menuHeight, navheight, haveBack, btnHeight, btnWidth

				statusBarHeight = uni.getSystemInfoSync().statusBarHeight
				//#ifdef MP-WEIXIN
				menuButtonObject = uni.getMenuButtonBoundingClientRect()
				menuHeight = menuButtonObject.height + (menuButtonObject.top - statusBarHeight) * 2
				navheight = menuHeight + statusBarHeight
				btnHeight = menuButtonObject.height
				btnWidth = menuButtonObject.width
				//#endif
				//#ifdef H5
				menuHeight = 44
				navheight = menuHeight + statusBarHeight
				btnHeight = 30
				btnWidth = 70
				//#endif
				if (getCurrentPages().length === 1) { // 当只有一个页面时
					haveBack = false;
				} else {
					haveBack = true;
				}
				that.navheight = navheight
				that.statusBarHeight = statusBarHeight
				that.menuHeight = menuHeight
				that.haveBack = haveBack
			},
			handleValueChange(currentVal) {
				console.log(currentVal)
			},
			// 厂家详情
			async changjia(id) {
				// let isLogin = await this.$refs.noLoginToast.open()
				// if (isLogin) {
				// 	let isHasMobile = await this.$refs.noLoginToast.getPhoneNumber()
				// 	if (!isHasMobile) {
				// 		return
				// 	}
				// } else {
				// 	return
				// }
				uni.navigateTo({
					url: '../../fenbao/pages/wenzhang/cjxq?id=' + id
				})
			},
			// 首页头部切换
			qie(index) {
				console.log(index,'liuyang')
				this.type = index
				if (this.type == 2) {
					this.fl_type = -1
					this.qhjyfl_list = []
					this.qhjy_page = 1
					this.qhjy_list = []
					this.qihuo = ''
					this.list_arr = []
					this.yuan_list_arr = []
					this.qihuo1 = ''
					this.list_arr1 = []
					this.yuan_list_arr1 = []
					this.qihuo2 = ''
					this.list_arr2 = []
					this.yuan_list_arr2 = []

					this.qh_enmpy = false
					this.qh_kk = false
					this.qh_type = 1
					this.craft_ids = ''
					this.place_ids = ''
					this.specification_ids = ''
					this.manage_category_ids = ''
					this.qhjy_list = []
					this.qhjy_page = 1
					this.jggy()
					this.chanqu()
					this.baozhuang('')
					this.qhjy_fl()
					this.pp()
					this.qijylist()
					this.bazaar_id = ''
				} else if (this.type == 0) {
					this.province=uni.getStorageSync('sheng') || '全国'
					this.city=uni.getStorageSync('shi') || '全国'
					this.tui_type = 1
					this.qihuo3 = ''
					this.list_arr3 = []
					this.yuan_list_arr3 = []
					this.qiye_enmpy = false
					this.qiye_kk = false
					this.qiye_page = 1
					this.qiye_list = []
					this.bazaar_id = ''
					// this.province = ''
					// this.city = ''
					this.leixing = ''
					this.label2 = ''
					this.value2 = []
					this.qiye_lebiao()
					this.tuijian_shichang()
					this.leixing = ''
					this.qihuo5 = ''
					this.list_arr5 = []
					this.yuan_list_arr5 = []
					this.leixing_list()
					this.category_id=''
					this.qihuo6 = ''
					this.list_arr6 = []
					this.yuan_list_arr6 = []
					this.qy_fl_list()
				} else if (this.type == 1) {
					this.sc_list = []
					this.sc_page = 1
					this.sc_enmpy = false
					this.sc_kk = false
					this.index_order = 1
					this.distance_order = 0
					this.firm_order = 0
					this.juli_name = ''
					this.show = false
					this.juli_name1 = ''
					this.label2=''
					this.show1 = false
					this.xu = 1
					console.log('a222')
					uni.showLoading({
						title:'',
					})
					setTimeout(() => {
						uni.hideLoading()
					}, 500)
					this.sc(1)
					this.bazaar_id = ''
				}else if (this.type == 3) {
					this.zhi=1
					this.zhiboxinxi()
					this.bazaar_id = ''
				}
			},
			// 添加关注
			async tjgz() {
				let isLogin = await this.$refs.noLoginToast.open()
				if (isLogin) {
					let isHasMobile = await this.$refs.noLoginToast.getPhoneNumber()
					if (!isHasMobile) {
						return
					}
				} else {
					return
				}
				uni.getSetting({
					withSubscriptions: true, //是否获取用户订阅消息的订阅状态，默认false不返回
					success(res) {
						if (!res.subscriptionsSetting.mainSwitch) {
							uni.showModal({
								title: '温馨提示',
								content: "检测到您没有开启订阅消息的权限，是否去设置？",
								success(modal) {
									if (modal.confirm) { // 点击肯定
										uni.openSetting({
											withSubscriptions: true
										});
									} else {
										uni.showToast({
											title: "您已拒绝订阅消息授权，无法预约领取",
											icon: "none",
											duration: 1000
										})
									}
								}
							})

						} else {
							uni.requestSubscribeMessage({
								tmplIds: ['e5vEPFIILzZ-O0WW6Ez6lJCi6sd5O8o47yb_820PHTg'
								],
								success(res) {
									console.log(res)
									uni.navigateTo({
										url: '../../subpages/pages/guanzhu'
									})

								}
							})
						}


					}
				})

			},
			//推荐切换
			async guanzhu(index) {
				if (index === 2) {
					let isLogin = await this.$refs.noLoginToast.open()
					if (!isLogin) {
						return
					}
				}
				this.qi = index
				this.qhjy_page = 1
				this.qhjy_list = []
				this.qihuo = ''
				this.list_arr = []
				this.yuan_list_arr = []
				this.qihuo1 = ''
				this.list_arr1 = []
				this.yuan_list_arr1 = []
				this.qihuo2 = ''
				this.list_arr2 = []
				this.yuan_list_arr2 = []
				this.qh_enmpy = false
				this.qh_kk = false
				this.qh_type = 1
				this.craft_ids = ''
				this.place_ids = ''
				this.specification_ids = ''
				this.manage_category_ids = ''
				this.qhjy_list = []
				this.qhjy_page = 1
				this.jggy()
				this.chanqu()
				this.baozhuang('')
				this.qijylist()

			},
			jiage(index) {
				this.tui_type = index
				if (index == 3) {
					// this.$refs['picker3'].show()
					uni.navigateTo({
						url:'/fenbao/pages/wenzhang/xu_shichang?id='+this.bazaar_id
					})
				} else if (index == 2) {
					this.$refs['picker6'].show()
				} else if (index == 1) {
					this.bazaar_id = ''
					this.qiye_page = 1
					this.qiye_list = []
					this.qiye_enmpy = false
					this.qiye_kk = false
					// this.province = ''
					// this.city = ''
					this.label2 = ''
					this.qihuo3 = ''
					this.qihuo5 = ''
					this.qihuo6=''
					this.leixing = ''
					this.category_id=''
					this.qiye_lebiao()
				} else if (index == 4) {
					this.$refs['picker5'].show()
				}else if (index == 5) {
					this.$refs['picker7'].show()
				}
			},
			// 推荐市场
			handleConfirm3(e) {
				let that = this
				let index = e.index[0] || e.index
				console.log(index, 123456)
				this.bazaar_id = this.yuan_list_arr3[index].id
				this.qiye_page = 1
				this.qiye_list = []
				this.qiye_enmpy = false
				this.qiye_kk = false
				this.qiye_lebiao()
			},
			handleConfirm4(e) {

				// 如果存在多个picker，可以在picker上设置dataset属性，confirm中获取，就能区分是哪个picker了
				console.log('confirm::', e)
				if (e) {
					const name = e.dataset.name
					const label = e.item.map(m => m.label).join('-')
					if (name && label) {
						this[name] = label
					}
				}

				// this.value2 = []
				this.label2 = e.item.map(m => m.label).join('-')
				console.log(this.label2,147741)
				this.province = e.item[0].label
				this.city = e.item[1].label
				this.sc_list = []
				this.sc_page = 1
				this.sc_enmpy = false
				this.sc_kk = false
				console.log('a111')
				this.sc()

				// this.qiye_page = 1
				// this.qiye_list = []
				// this.qiye_enmpy = false
				// this.qiye_kk = false
				// this.qiye_lebiao()
			},
			// 推荐市场
			handleConfirm5(e) {
				let that = this
				let index = e.index[0] || e.index
				console.log(index, 123456)
				this.leixing = this.yuan_list_arr5[index].title
				this.qiye_page = 1
				this.qiye_list = []
				this.qiye_enmpy = false
				this.qiye_kk = false
				this.qiye_lebiao()
			},
			handleConfirm6(e) {
				let that = this
				let index = e.index[0] || e.index
				console.log(index, 123456)
				this.qihuo6 = this.yuan_list_arr6[index].name
				this.category_id=this.yuan_list_arr6[index].id
				this.qiye_page = 1
				this.qiye_list = []
				this.qiye_enmpy = false
				this.qiye_kk = false
				this.qiye_lebiao()
			},
			// 推荐市场列表
			tuijian_shichang() {
				this.list_arr3=[]
				this.post('api/firm_data/bazaar', {province:this.province,city:this.city}, true).then(res => {
					console.log(res)
					if (res.code == 1) {
						this.yuan_list_arr3 = res.data
						for (let i = 0; i < res.data.length; i++) {
							this.list_arr3.push(res.data[i].name)
						}
					}
				})
			},
			// 推荐类型列表
			leixing_list() {
				this.list_arr5 = []
				this.yuan_list_arr5 = []
				this.post('api/firm_data/get_type', '', true).then(res => {
					console.log(res)
					if (res.code == 1) {
						this.yuan_list_arr5 = res.data
						for (let i = 0; i < res.data.length; i++) {
							this.list_arr5.push(res.data[i].title)
						}
					}
				})
			},




			// 市场
			paixu(index) {
				this.xu = index
				if (index == 2) {
					uni.navigateTo({
						url:'/fenbao/pages/wenzhang/sc_weizhi?sheng='+(this.xuan_sheng || '全国') +'&shi='+(this.xuan_shi ||'全国')
					})
					// this.$refs['picker6'].show()
					// this.show = true
				} else if (index == 3) {
					this.show1 = true
				} else if (index == 1) {
					this.xuan_sheng=''
					this.xuan_shi=''
					uni.removeStorageSync('xuan_sc_type')
					this.sc_list = []
					this.sc_page = 1
					this.sc_enmpy = false
					this.sc_kk = false
					this.index_order = 1
					this.distance_order = 0
					this.firm_order = 0
					this.juli_name = ''
					this.show = false
					this.juli_name1 = ''
					this.show1 = false
					this.province=''
					this.city=''
					this.sc()
				}
			},

			// 期货价格
			qi_huo(index) {
				this.qh_type = index
				if (index == 2) {
					this.$refs['picker'].show()
				} else if (index == 3) {
					this.$refs['picker1'].show()
				} else if (index == 4) {
					// this.$refs['picker2'].show()
					this.$refs.popup4.open()
				} else if (index == 1) {
					this.qihuo = ''
					this.qihuo1 = ''
					this.qihuo2 = ''
					this.qhjy_list = []
					this.qhjy_page = 1
					this.qh_enmpy = false
					this.qh_kk = false
					this.craft_ids = ''
					this.place_ids = ''
					this.specification_ids = ''
					// this.manage_category_ids = ''
					this.qijylist()
				}
			},
			handleConfirm(e) {

				this.qhjy_page = 1
				this.qhjy_list = []
				this.qijylist()
			},
			qihuo_change(e){
				let that = this
				let index = e.index[0] || e.index
				console.log(index, 123456)
				this.craft_ids = this.yuan_list_arr[index].id
			},
			handleConfirm1(e) {

				this.qhjy_page = 1
				this.qhjy_list = []
				this.qh_enmpy = false
				this.qh_kk = false
				this.qijylist()
			},
			qihuo_change1(e){
				let that = this
				let index = e.index[0] || e.index
				console.log(index, 123456)
				this.place_ids = this.yuan_list_arr1[index].id
			},
			handleConfirm2(e) {

				this.qhjy_page = 1
				this.qh_enmpy = false
				this.qh_kk = false
				this.qhjy_list = []
				this.qijylist()
			},
			qihuo_change2(index){
				// let that = this
				// let index = e.index[0] || e.index
				console.log(index, 123456)
				this.specification_ids = this.yuan_list_arr2[index].id
				this.qihuo2=this.yuan_list_arr2[index].name
				this.qhjy_page = 1
				this.qhjy_list = []
				console.log('hhhhhhhhh')
				this.qijylist()
			},

			changhao_qx(){
				this.$refs.popup4.close()
			},
			changhao_wc(){
				this.$refs.popup4.close()
				this.qhjy_page = 1
				this.qhjy_list = []
				console.log('hhhhhhhhh')
				this.qijylist()
			},
			sousuo_changhao(e){
				this.baozhuang(e.detail.value)
			},
			// 市场
			async shichang(id) {
				let isLogin = await this.$refs.noLoginToast.open()
				if (isLogin) {
					let isHasMobile = await this.$refs.noLoginToast.getPhoneNumber()
					if (!isHasMobile) {
						return
					}
				} else {
					return
				}
				uni.navigateTo({
					url: '../../fenbao/pages/wenzhang/shichang?id=' + id
				})
			},
			// 企业详情
			async qyxq(id,type,name) {
				// let isLogin = await this.$refs.noLoginToast.open()
				// if (isLogin) {
				// 	let isHasMobile = await this.$refs.noLoginToast.getPhoneNumber()
				// 	if (!isHasMobile) {
				// 		return
				// 	}
				// } else {
				// 	return
				// }
				if(type==1){
					uni.navigateTo({
						url: '../../fenbao/pages/wenzhang/qyxq?id=' + id+'&name='+name
					})
				}else{
					uni.navigateTo({
						url:'../../subpages/pages/wuliuqiye/wl_qyxq?id='+id+'&name='+name
					})
				}
			},


			// 期货交易
			// 期货交易分类
			qhjy_fl() {
				this.post('api/futures/manage', '', false).then(res => {
					console.log(res)
					if (res.code == 1) {
						this.qhjyfl_list = res.data
					}
				})
			},
			//点击期货分类
			dianji_fl(index) {
				uni.navigateTo({
					url:'/fenbao/pages/leibie/qh_baojia?id='+this.qhjyfl_list[index].id+'&name='+this.qhjyfl_list[index].name
				})
				return
				this.fl_type = index
				this.manage_category_ids = this.qhjyfl_list[index].id
				this.qhjy_page = 1
				this.qh_enmpy = false
				this.qh_kk = false
				this.qhjy_list = []
				this.jggy()
				this.chanqu()
				this.baozhuang('')
				this.qijylist()
			},
			// 期货品牌
			pp() {
				this.post('api/futures/brand', {
					is_recommend: 1
				}, false).then(res => {
					console.log(res)
					if (res.code == 1) {
						this.pp_list = res.data.data
					}
				})
			},
			// 期货交易列表
			qijylist(click) {
				if (this.qi == 1) {
					this.brand_id = false
				} else {
					this.brand_id = true
				}
				let data = {
					page: this.qhjy_page,
					limit: 10,
					craft_ids: this.craft_ids,
					place_ids: this.place_ids,
					specification_ids: this.specification_ids,
					manage_category_ids: this.manage_category_ids,
					brand_id: this.brand_id
				}
				this.post('api/futures', data, true).then(res => {
					console.log(res)
					if (res.code == 1) {
						if (this.qhjy_page == 1) {
							if (res.data.data == null || res.data.data.length == 0) {
								this.qh_kk = true
								this.qh_enmpy = true
								return
							} else if (res.data.data.length < 10) {
								this.qh_enmpy = true
							}
						} else {
							if (res.data.data == null || res.data.data.length == 0) {
								this.qh_enmpy = true
								return
							} else if (res.data.data.length < 10) {
								this.qh_enmpy = true
							}
						}
						if(click==1){
							this.qhjy_list=[]
							this.qhjy_page=1
							this.qh_kk = false
							this.qh_enmpy = false
						}

						this.qhjy_list.push(...res.data.data)
						console.log(this.qhjy_list, 123456789)
					} else {
						this.qh_kk = true
						uni.showToast({
							title: res.msg,
							icon: "none",
							duration: 1000
						})
					}
				})
			},
			// 品牌规格
			jggy() {
				this.list_arr=[]
				this.yuan_list_arr=[]
				this.post('api/futures/craft', {manage_category_ids: this.manage_category_ids}, false).then(res => {
					console.log(res)
					if (res.code == 1) {
						this.yuan_list_arr = res.data.list
						this.jggy_name=res.data.craft_name
						for (let i = 0; i < res.data.list.length; i++) {
							this.list_arr.push(res.data.list[i].name)
						}
					}
				})
			},
			// 产区
			chanqu() {
				this.list_arr1=[]
				this.yuan_list_arr1=[]
				this.post('api/futures/place', {manage_category_ids: this.manage_category_ids}, false).then(res => {
					console.log(res)
					if (res.code == 1) {
						this.yuan_list_arr1 = res.data
						for (let i = 0; i < res.data.length; i++) {
							this.list_arr1.push(res.data[i].name)
						}
					}
				})
			},
			// 产区
			baozhuang(keywords) {
				this.list_arr2=[]
				this.yuan_list_arr2=[]
				this.post('api/futures/specification', {manage_category_ids: this.manage_category_ids,keywords:keywords}, false).then(res => {
					console.log(res)
					if (res.code == 1) {
						this.yuan_list_arr2 = res.data
						for (let i = 0; i < res.data.length; i++) {
							this.list_arr2.push(res.data[i].name)
						}
					}
				})
			},
			// 关注厂家
			async gz_cj(id, index) {
				let isLogin = await this.$refs.noLoginToast.open()
				console.log('%c [ isLogin ]-3073', 'font-size:13px; background:pink; color:#bf2c9f;', isLogin)
				if (!isLogin) {
					return
				}
				this.post('api/futures/attention', {
					id: id
				}, true).then(res => {
					console.log(res)
					if (res.code == 1) {
						uni.showToast({
							title: res.msg,
							icon: "none",
							duration: 1000
						})
						if (res.data) {
							for(let i=0;i<this.qhjy_list.length;i++){
								if(id==this.qhjy_list[i].brand_id){
									this.qhjy_list[i].is_collect = 1
								}
							}
						} else {
							for(let i=0;i<this.qhjy_list.length;i++){
								if(id==this.qhjy_list[i].brand_id){
									this.qhjy_list[i].is_collect = 2
								}
							}
							if(this.qi==2){
								this.qh_kk=false
								this.qhjy_list=[]
								this.qh_enmpy=false
								this.qhjy_page=1
								this.qijylist()
							}
						}
						// if (this.qi == 2) {
						// 	this.qhjy_list.splice(index, 1)
						// 	if (this.qhjy_list.length <= 0) {
						// 		this.qh_kk = true
						// 	}
						// }
					}
				})
			},
			async qbpp() {
				// let isLogin = await this.$refs.noLoginToast.open()
				// if (!isLogin) {
				// 	return
				// }
				uni.navigateTo({
					url: '../../fenbao/pages/wenzhang/qbpp'
				})
			},
			async lahei(id,index){
				let isLogin = await this.$refs.noLoginToast.open()
				if (isLogin) {
					let isHasMobile = await this.$refs.noLoginToast.getPhoneNumber()
					if (!isHasMobile) {
						return
					}
				} else {
					return
				}
				this.$refs.popup2.open()
				this.lh_id=id
				this.lh_index=index

			},
			// 不感兴趣
			bgxq(){
				this.$refs.popup2.close()
				this.qiye_list.splice(this.lh_index,1)
				uni.showToast({
					icon:'none',
					title: '以后尽量减少此类内容的推送',
					duration: 2000
				});
			},
			// 拉黑作者
			lhftr(){
				let that=this
				this.$refs.popup2.close()
				uni.showModal({
					title: '确定拉黑该企业？',
					content: '拉黑后看不到此企业，需要到黑名单解除！',
					success (res) {
						if (res.confirm) {
							that.post('api/client/black_firm',{firm_id:that.lh_id},true).then(res=>{
								console.log(res)
								if(res.code==1){
									uni.showToast({
										title: res.msg,
										icon: "none",
										duration: 1000
									})
									that.qiye_list.splice(that.lh_index,1)
								}else{
									uni.showToast({
										title: res.msg,
										icon: "none",
										duration: 1000
									})
								}
							})
						} else if (res.cancel) {
							console.log('用户点击取消');
						}
					}
				});
			}
		},
		mounted() {
			this.init();
			const that = this
			this.getSysHeightInfo()
			//#ifdef H5
			window.onscroll = function() {
				var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
				if (scrollTop > 30) {
					that.isScroll = true
				} else {
					that.isScroll = false
				}
			}
			//#endif

		},
		onPageScroll(t) {

			t.scrollTop > 20 ? this.xiao = false : this.xiao = true;
			t.scrollTop > 80 ? this.da = true : this.da = false;
			// t.scrollTop > 80 ? this.da = true : this.da = false;

		},
		watch: {
			scrollTop(newValue, oldValue) {
				//#ifdef MP-WEIXIN
				const that = this
				if (newValue > 1) {
					that.isScroll = true
				} else {
					that.isScroll = false
				}
				//#endif
			},
			city(newValue, oldValue){
				this.qie(1)
			},
			bazaar_id(newValue,oldValue){
				if(newValue!=oldValue){
					this.qiye_page = 1
					this.qiye_list = []
					this.qiye_enmpy = false
					this.qiye_kk = false
					this.qiye_lebiao()
				}
			}
		},
		computed: {
			style() {
				return `width:${this.navItemWidth}px; left:${this.navItemLeft}px`;
			},
			style1() {
				return `width:${this.navItemWidth1}px; left:${this.navItemLeft1}px`;
			}
		}
	}
</script>

<style lang="scss">


	.nav {
		white-space: nowrap;
		position: relative;
		height: 60upx;
		line-height: 60rpx;
		padding: 20upx 0;
		display: flex;
	}
	.nav-item {
		flex: 1;
		text-align: center;
		transition: color 0.3s ease;
		color: #ffffff;
		font-size: 30rpx;
		position: relative;

	}
	.nav-item-act {
		color: #FFFFFF;
		font-size: 40rpx;
		font-weight: 600;
		position: relative;

	}
	.nav-item-act:after {
		content: ''; // 必须
		position: absolute;
		left: 50%;
		bottom: -10rpx;
		transform: translateX(-50%);
		width: 60rpx;
		height: 6rpx;
		background-color: #FFFFFF;
	}
	.swiper {
		height: calc(100vh - 380upx);
	}
	// swiper-item {
	// 	color: #000;
	// 	position: relative;
	// 	background-color: #F4F5FA;
	// }
	.swiper-item {
		overflow-y: scroll;
	}

	.swiper-scroll {
		height: 99%;
	}


	page {
		background-color: #F8F8F8 !important;
		padding-bottom: 200rpx;
		font-family: Demibold;
		height: calc(100vh - 360upx);
	}

	.bg {
		width: 100%;
	}

	.active {
		color: #1fb0ac;
	}

	.a {
		color: #000000;
	}

	.scroll-h1 {
		width: 100%;
		border-radius: 16rpx;
		/* // height: 100rpx; */
		margin-bottom: 20upx;

		// padding-left: 24rpx;
		flex-direction: row;
		/* #ifndef APP-PLUS */
		white-space: nowrap;
		/* #endif */
		/* flex-wrap: nowrap; */
		/* border-color: #cccccc;
		border-bottom-style: solid;
		border-bottom-width: 1px; */
	}

	.uni-tab-item {
		/* #ifndef APP-PLUS */
		display: inline-block;
		/* #endif */
		flex-wrap: nowrap;
		// padding-left: 20rpx;
		// padding-right: 20rpx;
		padding: 10rpx 16rpx 10rpx 0;
	}

	.uni-tab-item1 {
		display: inline-block;
		flex-wrap: nowrap;
		padding: 10rpx 16rpx 10rpx 0;
	}

	.hai {
		text-align: center;
		font-size: 32rpx;
		color: #FFFFFF;
	}

	.sou {
		width: 100%;
		height: 80rpx;
		line-height: 80rpx;
		border-radius: 40rpx;
		color: #FFFFFF;
		font-size: 26rpx;
		box-sizing: border-box;
		padding: 0 30rpx 0 80rpx;
		background-color: rgba(255, 255, 255, .3);
	}

	.suo {
		color: #FFFFFF;
		opacity: 1;
		font-size: 26rpx;
	}

	.sou1 {
		width: 100%;
		height: 60rpx;
		line-height: 60rpx;
		border-radius: 30rpx;
		color: #333;
		font-size: 26rpx;
		box-sizing: border-box;
		padding: 0 30rpx 0 80rpx;
		background-color: #eee;
	}
	.suo1 {
		color: #666;
		opacity: 1;
		font-size: 26rpx;
	}
	.changhao_box>view:nth-child(3n+2){
		margin: 0 2%;
	}
	.changhao_box>view{
		margin-bottom: 20rpx;
	}
	.ch_active{
		background-color: #1fb0ac;
		color: #fff;
		font-size: 28rpx;
	}
	.ch_as{
		background-color: #eee;
		color: #333;
		font-size: 28rpx;
	}


	.souicon {
		width: 30rpx;
		height: 30rpx;
		position: absolute;
		top: 50%;
		left: 30rpx;
		transform: translateY(-50%);

	}

	.addcity {
		position: absolute;
		top: 50%;
		left: 0;
		transform: translateY(-50%);
		font-size: 28rpx;
	}

.sticky-box {
		/* #ifndef APP-PLUS-NVUE */
		// display: flex;
		position: -webkit-sticky;
		/* #endif */
		position: sticky;
		top: var(--window-top);
		z-index: 100;
		flex-direction: row;
		margin: 0px;
		// position: fixed;
		// top: 0;
		// left: 0;
		// z-index: 100;
	}
	.shang_city {
		width: 100%;
		box-sizing: border-box;
		padding: 0 0rpx 200rpx;
		position: absolute;
		top: 0rpx;
		left: 50%;
		transform: translateX(-50%);
		box-sizing: border-box;
		// padding-bottom: 200rpx;

	}

	.lunbo {
		width: 92%;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		box-sizing: border-box;
	}



	// 头部
	.navbar {
		width: 100%;
		overflow: hidden;
		top: 0;
		left: 0;
		z-index: 999;
		flex-shrink: 0;
		color: #fff;
		font-size: 16px;
	}

	.nav-normal {
		position: relative;
	}

	.nav-fixed {
		position: fixed;
	}

	.logo-centent {
		display: flex;
		align-items: center;
	}

	.logo-centent image {
		width: 260rpx;
		height: 68rpx;
		margin-left: 20rpx;
	}

	.hearder-status {
		display: flex;
		align-items: center;
		position: absolute;
		padding-left: 30rpx;
		height: 100%;
		z-index: 99999;

	}

	.header-title {
		height: 100%;
		left: 0;
		right: 0;
		position: absolute;
		margin: auto;
		text-align: center;
	}

	.header-title image {
		position: absolute;
		width: 270rpx;
		height: 35rpx;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	.header-title-left {
		height: 100%;
		left: 0;
		right: 0;
		position: absolute;
		margin: auto;
		text-align: left;
	}

	.back-text {
		margin-left: 7px;
		width: 100upx;
		text-overflow: ellipsis;
		overflow: hidden;
		white-space: nowrap;
	}

	.hearder-status .nav-title-left {
		display: flex;
		justify-content: space-between;
		align-items: center;
		color: rgba(0, 0, 0, .8);
		width: 100%;
		font-weight: bold;
	}

	.hearder-status .nav-btn {
		/* background-color: rgba(255, 255, 255, .5);
		border-radius: 15px; */
		display: flex;
		justify-content: space-between;
		align-items: center;
		color: rgba(0, 0, 0, .8);
		width: 50%;
		font-weight: bold;
	}

	.hearder-status .nav-btn .gotback,
	.hearder-status .nav-btn .gothome {
		flex: 1;
		text-align: center;
		font-size: 18px;
	}

	.Addslot {
		position: absolute;
		width: 100%;
	}



	.tuijian {
		display: flex;
		height: 80rpx;
		line-height: 80rpx;
		// text-align: center;
		padding: 0rpx 0 0rpx;
		// justify-content:space-between;
		overflow: hidden;
	}

	.tuijian>view {
		// width: 15%;
		// float: left;
		text-align: center;
		flex: 1;
		position: relative;
	}

	.active_type {
		color: #FFFFFF;
		font-size: 40rpx;
		font-weight: 600;
	}

	.a_type {
		color: #FFFFFF;
		font-size: 26rpx;
		font-weight: 500;
	}

	.active_type::after {
		content: ''; // 必须
		position: absolute;
		left: 50%;
		bottom: 0;
		transform: translateX(-50%);
		width: 60rpx;
		height: 6rpx;
		background-color: #FFFFFF;
	}

	.fenlei {
		width: 100%;
		margin-top: 26rpx;
		height: 260rpx;
		background-color: #FFF;
		box-sizing: border-box;
		padding-bottom: 20rpx;
		padding:  0 10rpx;
	}

	.fenlei1 {
		width: 100%;
		background-color: #FFFFFF;
		box-sizing: border-box;
		overflow: hidden;
		padding: 28rpx 0 28rpx;
		border-radius: 20rpx;
	}

	.tupian {
		width: 100%;
		overflow: hidden;
		margin-top: 26rpx;
	}

	.tupian>image {
		height: 200rpx;
		width: 332rpx;
		float: left;
		margin-bottom: 26rpx;
	}

	.tupian>image:nth-child(2n+1) {
		margin-right: 26rpx;
	}

	.tu>view {
		margin: 10rpx 0;
	}

	.tu>view:nth-child(3n+2) {
		margin: 10rpx 30rpx;
	}



	// 期货交易
	.qi_type {
		color: #999999;
		font-size: 30rpx;
		font-weight: 500;
	}

	.qiactive_type {
		color: #000000;
		font-size: 30rpx;
		font-weight: 600;
	}
	.follow_box {
		height: 62rpx;
		line-height: 62rpx;
		width: 160rpx;
		&:first-child {
			margin-right: 48rpx;
		}
	}
	.qiactive_type::after {
		content: ''; // 必须
		position: absolute;
		left: 50%;
		bottom: 2rpx;
		transform: translateX(-50%);
		width: 100rpx;
		height: 6rpx;
		background-color: #1fb0ac;
	}

	.tui_mei {
		color: #666666;
		font-size: 30rpx;
		font-weight: 500;
	}

	.tui_active {
		color: #000000;
		font-size: 30rpx;
		font-weight: 600;
	}


	// 直播
	.zhi_mei {
		color: #999999;
		font-size: 28rpx;
		font-weight: 500;
	}

	.zhi_active {
		color: #000000;
		font-size: 28rpx;
		font-weight: 600;
	}

	.zhi_active::after {
		content: ''; // 必须
		position: absolute;
		left: 50%;
		bottom: 0rpx;
		transform: translateX(-50%);
		width: 60rpx;
		height: 6rpx;
		background-color: #1fb0ac;
	}

	.zhi_box>view:nth-child(2n+1) {
		margin-right: 4%;
	}

	.zhi_box>view {
		margin-bottom: 26rpx;
	}

	.footer {
		display: flex;
		justify-content: space-between;
		border-top: 1px solid #f4f4f4;
		margin-top: 30rpx;
		padding-bottom: 20rpx;

		button {
			margin: 0 auto;
			width: 100%;
			background-color: #19BE6B;
			// width: 200upx;
			border-radius: 10upx;
			font-size: $uni-font-size-sm;
			// padding: 22upx 34upx;
			height: 80upx;
			font-size: 30rpx;
			line-height: 80upx !important;
			// line-height: 1;
			color: #FFFFFF;
		}

		button:after {
			border: 0;
		}
	}
	.gradient-bg2{
		position: relative;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		z-index: 0;
		height: 500rpx;
		background: linear-gradient(180deg, #1fb0ac 0%, #F5F5F5 100%);
	}
	/*#ifdef APP-PLUS*/
		.search_location_container {
		margin-top: 40rpx;
	}
  /*#endif*/
.sort_container {
	background: linear-gradient(to bottom,#7CCECC 0%, #94D6D4 100%);
	z-index: 99999;
}
.master-box {
	margin-top: 22rpx;
}

</style>
